From 41eef9246c6a3055e3876e3dd7aeaadecb4b76c0 Mon Sep 17 00:00:00 2001 From: Toni Date: Wed, 3 Apr 2024 14:10:21 +0200 Subject: Disable `-Wno-unused-parameter -Wno-unused-function`. (#2358) * unused parameters and functions pollute the code and decrease readability Signed-off-by: Toni Uhlig --- example/ndpiSimpleIntegration.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'example/ndpiSimpleIntegration.c') diff --git a/example/ndpiSimpleIntegration.c b/example/ndpiSimpleIntegration.c index 4517edbdf..dc14928c9 100644 --- a/example/ndpiSimpleIntegration.c +++ b/example/ndpiSimpleIntegration.c @@ -900,8 +900,7 @@ static void ndpi_process_packet(uint8_t * const args, ip != NULL ? (uint8_t *)ip : (uint8_t *)ip6, ip_size, time_ms, NULL); - if (ndpi_is_protocol_detected(workflow->ndpi_struct, - flow_to_process->detected_l7_protocol) != 0 && + if (ndpi_is_protocol_detected(flow_to_process->detected_l7_protocol) != 0 && flow_to_process->detection_completed == 0) { if (flow_to_process->detected_l7_protocol.master_protocol != NDPI_PROTOCOL_UNKNOWN || -- cgit v1.2.3