app: fix int warnings in generic app files

pull/6779/head
Philippe Antoine 3 years ago committed by Victor Julien
parent 334b1382e0
commit 23f242dfc2

@ -249,7 +249,7 @@ AppLayerParserThreadCtx *AppLayerParserThreadCtxAlloc(void)
SCEnter(); SCEnter();
AppProto alproto = 0; AppProto alproto = 0;
int flow_proto = 0; uint8_t flow_proto = 0;
AppLayerParserThreadCtx *tctx; AppLayerParserThreadCtx *tctx;
tctx = SCMalloc(sizeof(*tctx)); tctx = SCMalloc(sizeof(*tctx));
@ -275,7 +275,7 @@ void AppLayerParserThreadCtxFree(AppLayerParserThreadCtx *tctx)
SCEnter(); SCEnter();
AppProto alproto = 0; AppProto alproto = 0;
int flow_proto = 0; uint8_t flow_proto = 0;
for (flow_proto = 0; flow_proto < FLOW_PROTO_DEFAULT; flow_proto++) { for (flow_proto = 0; flow_proto < FLOW_PROTO_DEFAULT; flow_proto++) {
for (alproto = 0; alproto < ALPROTO_MAX; alproto++) { for (alproto = 0; alproto < ALPROTO_MAX; alproto++) {

@ -27,7 +27,7 @@
typedef struct AppLayerParser { typedef struct AppLayerParser {
const char *name; const char *name;
const char *default_port; const char *default_port;
int ip_proto; uint8_t ip_proto;
ProbingParserFPtr ProbeTS; ProbingParserFPtr ProbeTS;
ProbingParserFPtr ProbeTC; ProbingParserFPtr ProbeTC;

Loading…
Cancel
Save