]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Babel: address a couple compiler warnings
authorDenis Ovsienko <[email protected]>
Thu, 13 Aug 2015 20:40:49 +0000 (21:40 +0100)
committerDenis Ovsienko <[email protected]>
Thu, 13 Aug 2015 20:40:49 +0000 (21:40 +0100)
677:31: warning: variable ‘router_id’ set but not used
676:72: warning: variable ‘hopc’ set but not used

print-babel.c

index a94702ae5e341df926f01b279c4b66555b63509d..cdf08913a9842c9b05a93fa71b74742abaaba5b4 100644 (file)
@@ -695,10 +695,10 @@ babel_print_v2(netdissect_options *ndo,
                 if(ae == 1)
                     src_plen += 96;
                 ND_PRINT((ndo, "(%u hops) for (%s, ",
-                          message[6], format_prefix(ndo, prefix, plen)));
+                          hopc, format_prefix(ndo, prefix, plen)));
                 ND_PRINT((ndo, "%s) seqno %u id %s",
                           format_prefix(ndo, src_prefix, src_plen),
-                          seqno, format_id(message + 8)));
+                          seqno, format_id(router_id)));
             }
         }
             break;