Deprecate the internal int/uint types in favor of the cstdint types they were based on

This commit is contained in:
Tim Wojtulewicz 2019-07-30 11:38:42 -07:00
parent 18e4976c6c
commit 54752ef9a1
218 changed files with 1331 additions and 1323 deletions

View file

@ -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);