From: Guy Harris Date: Thu, 14 Apr 2016 01:54:11 +0000 (-0700) Subject: Get rid of set-but-not-used variable. X-Git-Tag: tcpdump-4.8.0~27 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/2398aa233d3af23bfeca138f93ca2708a197dcfa Get rid of set-but-not-used variable. --- diff --git a/print-rt6.c b/print-rt6.c index 0f2379a8..7323c72d 100644 --- a/print-rt6.c +++ b/print-rt6.c @@ -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++; } /*(*/