]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
app: fix int warnings in generic app files
authorPhilippe Antoine <contact@catenacyber.fr>
Mon, 6 Dec 2021 08:26:54 +0000 (09:26 +0100)
committerVictor Julien <vjulien@oisf.net>
Thu, 13 Jan 2022 07:58:11 +0000 (08:58 +0100)
src/app-layer-parser.c
src/app-layer-register.h

index 4c6734fdc203037fc79700e8be6a18edea6b1818..d77a5c70bff5367d1e9d4c94a8f5996bfe05ab0b 100644 (file)
@@ -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++) {
index b470761c3508ebc84f8c1f75e1f0b9661d8954fa..90b3402b623d131e7ba73caec26ef2847c18c193 100644 (file)
@@ -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;