mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 07:08:19 +00:00
Deprecate the internal int/uint types in favor of the cstdint types they were based on
This commit is contained in:
parent
18e4976c6c
commit
54752ef9a1
218 changed files with 1331 additions and 1323 deletions
|
@ -469,7 +469,7 @@ F RET_CONST(val_mgr->GetFalse())
|
|||
{FLOAT} RET_CONST(new Val(atof(yytext), TYPE_DOUBLE))
|
||||
|
||||
{D}"/tcp" {
|
||||
uint32 p = atoi(yytext);
|
||||
uint32_t p = atoi(yytext);
|
||||
if ( p > 65535 )
|
||||
{
|
||||
reporter->Error("bad port number - %s", yytext);
|
||||
|
@ -478,7 +478,7 @@ F RET_CONST(val_mgr->GetFalse())
|
|||
RET_CONST(val_mgr->GetPort(p, TRANSPORT_TCP))
|
||||
}
|
||||
{D}"/udp" {
|
||||
uint32 p = atoi(yytext);
|
||||
uint32_t p = atoi(yytext);
|
||||
if ( p > 65535 )
|
||||
{
|
||||
reporter->Error("bad port number - %s", yytext);
|
||||
|
@ -487,7 +487,7 @@ F RET_CONST(val_mgr->GetFalse())
|
|||
RET_CONST(val_mgr->GetPort(p, TRANSPORT_UDP))
|
||||
}
|
||||
{D}"/icmp" {
|
||||
uint32 p = atoi(yytext);
|
||||
uint32_t p = atoi(yytext);
|
||||
if ( p > 255 )
|
||||
{
|
||||
reporter->Error("bad port number - %s", yytext);
|
||||
|
@ -496,7 +496,7 @@ F RET_CONST(val_mgr->GetFalse())
|
|||
RET_CONST(val_mgr->GetPort(p, TRANSPORT_ICMP))
|
||||
}
|
||||
{D}"/unknown" {
|
||||
uint32 p = atoi(yytext);
|
||||
uint32_t p = atoi(yytext);
|
||||
if ( p > 255 )
|
||||
{
|
||||
reporter->Error("bad port number - %s", yytext);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue