]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Get rid of set-but-not-used variable.
authorGuy Harris <[email protected]>
Thu, 14 Apr 2016 01:54:11 +0000 (18:54 -0700)
committerGuy Harris <[email protected]>
Thu, 14 Apr 2016 01:54:11 +0000 (18:54 -0700)
print-rt6.c

index 0f2379a86984fcb9e25ef122e21dde063b850bf5..7323c72dc0dab8d8cd5c17e7b152ae417b4c8efa 100644 (file)
@@ -41,7 +41,6 @@ rt6_print(netdissect_options *ndo, register const u_char *bp, const u_char *bp2
        register const u_char *ep;
        int i, len;
        register const struct in6_addr *addr;
-       const struct in6_addr *last_addr = NULL;
 
        dp = (const struct ip6_rthdr *)bp;
        len = dp->ip6r_len;
@@ -75,7 +74,6 @@ rt6_print(netdissect_options *ndo, register const u_char *bp, const u_char *bp2
                                goto trunc;
 
                        ND_PRINT((ndo, ", [%d]%s", i, ip6addr_string(ndo, addr)));
-                       last_addr = addr;
                        addr++;
                }
                /*(*/