From 21572635ab15a993600c4efd1246ac0691968a75 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Thu, 28 Mar 2024 03:12:19 +0100 Subject: Disable `-Wno-unused-parameter -Wno-unused-function`. * unused parameters and functions pollute the code and decrease readability Signed-off-by: Toni Uhlig --- src/lib/protocols/tcp_udp.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/lib/protocols/tcp_udp.c') diff --git a/src/lib/protocols/tcp_udp.c b/src/lib/protocols/tcp_udp.c index 2f3e37f72..59d137b50 100644 --- a/src/lib/protocols/tcp_udp.c +++ b/src/lib/protocols/tcp_udp.c @@ -25,7 +25,6 @@ u_int ndpi_search_tcp_or_udp_raw(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow, - u_int8_t protocol, u_int32_t saddr, u_int32_t daddr) /* host endianess */ { u_int16_t rc; @@ -56,7 +55,6 @@ void ndpi_search_tcp_or_udp(struct ndpi_detection_module_struct *ndpi_struct, st if(packet->iph /* IPv4 Only: we need to support packet->iphv6 at some point */) { proto = ndpi_search_tcp_or_udp_raw(ndpi_struct, flow, - flow->l4_proto, ntohl(packet->iph->saddr), ntohl(packet->iph->daddr)); -- cgit v1.2.3