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;