diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2016-11-13 18:06:55 +0100 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2016-11-13 18:22:03 +0100 |
commit | 612a07f4204885458afb3192482f964344efd736 (patch) | |
tree | c2456856cd4720ac2784a3e85a2268dbd0d2555a /src/lib/ndpi_main.c | |
parent | d129abcde09567be32f0bc93d28fdffe2810b15d (diff) |
ndpi_main: fix variable 'daddr/saddr' set but not used [-Wunused-but-set-variable]
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r-- | src/lib/ndpi_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index b58b43c36..50a234b2f 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -3487,14 +3487,13 @@ ndpi_protocol ndpi_detection_process_packet(struct ndpi_detection_module_struct flow->packet.iph)) { u_int16_t sport, dport; u_int8_t protocol; - u_int32_t saddr, daddr; u_int8_t user_defined_proto; flow->protocol_id_already_guessed = 1; #ifdef NDPI_DETECTION_SUPPORT_IPV6 if(flow->packet.iphv6 != NULL) { - protocol = flow->packet.iphv6->ip6_ctlun.ip6_un1.ip6_un1_nxt, saddr = 0, daddr = 0; + protocol = flow->packet.iphv6->ip6_ctlun.ip6_un1.ip6_un1_nxt; } else #endif { |