From 406ac81a3706d13deb7834de64f401c6888e5b13 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Sun, 29 May 2022 16:39:50 +0200 Subject: Compilation fixes for old ggc's --- src/lib/ndpi_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/ndpi_main.c') diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 1a3f0acf6..5f5fd593d 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -5056,14 +5056,14 @@ static u_int32_t check_ndpi_subprotocols(struct ndpi_detection_module_struct * c NDPI_PROTOCOL_BITMASK detection_bitmask, u_int16_t detected_protocol) { - u_int32_t num_calls = 0; + u_int32_t num_calls = 0, a; if (detected_protocol == NDPI_PROTOCOL_UNKNOWN) { return num_calls; } - for (u_int32_t a = 0; a < ndpi_str->proto_defaults[detected_protocol].subprotocol_count; a++) + for (a = 0; a < ndpi_str->proto_defaults[detected_protocol].subprotocol_count; a++) { u_int16_t subproto_id = ndpi_str->proto_defaults[detected_protocol].subprotocols[a]; if (subproto_id == (uint16_t)NDPI_PROTOCOL_MATCHED_BY_CONTENT || -- cgit v1.2.3