From fd2dff8542cac0973eb41d545d2877c8494373ec Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 30 Jul 2020 13:21:29 +0200 Subject: [PATCH] flow: minor cleanups --- src/flow-hash.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/flow-hash.c b/src/flow-hash.c index b08163be17..17fec620ca 100644 --- a/src/flow-hash.c +++ b/src/flow-hash.c @@ -47,8 +47,6 @@ #include "output.h" #include "output-flow.h" -#define FLOW_DEFAULT_FLOW_PRUNE 5 - FlowBucket *flow_hash; SC_ATOMIC_EXTERN(unsigned int, flow_prune_idx); SC_ATOMIC_EXTERN(unsigned int, flow_flags); @@ -67,9 +65,7 @@ static Flow *FlowGetUsedFlow(ThreadVars *tv, DecodeThreadVars *dtv); */ static inline int FlowHashRawAddressIPv6GtU32(const uint32_t *a, const uint32_t *b) { - int i; - - for (i = 0; i < 4; i++) { + for (int i = 0; i < 4; i++) { if (a[i] > b[i]) return 1; if (a[i] < b[i])