From: Philippe Antoine Date: Mon, 6 Dec 2021 08:26:54 +0000 (+0100) Subject: app: fix int warnings in generic app files X-Git-Tag: suricata-7.0.0-beta1~1066 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23f242dfc28b04e8a394dc3a5fdb38830363730f;p=thirdparty%2Fsuricata.git app: fix int warnings in generic app files --- diff --git a/src/app-layer-parser.c b/src/app-layer-parser.c index 4c6734fdc2..d77a5c70bf 100644 --- a/src/app-layer-parser.c +++ b/src/app-layer-parser.c @@ -249,7 +249,7 @@ AppLayerParserThreadCtx *AppLayerParserThreadCtxAlloc(void) SCEnter(); AppProto alproto = 0; - int flow_proto = 0; + uint8_t flow_proto = 0; AppLayerParserThreadCtx *tctx; tctx = SCMalloc(sizeof(*tctx)); @@ -275,7 +275,7 @@ void AppLayerParserThreadCtxFree(AppLayerParserThreadCtx *tctx) SCEnter(); AppProto alproto = 0; - int flow_proto = 0; + uint8_t flow_proto = 0; for (flow_proto = 0; flow_proto < FLOW_PROTO_DEFAULT; flow_proto++) { for (alproto = 0; alproto < ALPROTO_MAX; alproto++) { diff --git a/src/app-layer-register.h b/src/app-layer-register.h index b470761c35..90b3402b62 100644 --- a/src/app-layer-register.h +++ b/src/app-layer-register.h @@ -27,7 +27,7 @@ typedef struct AppLayerParser { const char *name; const char *default_port; - int ip_proto; + uint8_t ip_proto; ProbingParserFPtr ProbeTS; ProbingParserFPtr ProbeTC;