From: guy Date: Wed, 20 Apr 2005 22:08:44 +0000 (+0000) Subject: Get rid of an unused variable. (It should be possible to tell the type X-Git-Tag: tcpdump-3.9.1~122 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/69052c43f40c66c11209e76883630873c1f38bd3 Get rid of an unused variable. (It should be possible to tell the type of address from the way it's printed.) --- diff --git a/print-pim.c b/print-pim.c index c5b5575c..d6ed278d 100644 --- a/print-pim.c +++ b/print-pim.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-pim.c,v 1.45.2.1 2005-04-20 22:05:27 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-pim.c,v 1.45.2.2 2005-04-20 22:08:44 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -511,7 +511,6 @@ static int pimv2_addr_print(const u_char *bp, enum pimv2_addrtype at, int silent) { int af; - const char *afstr; int len, hdrlen; TCHECK(bp[0]); @@ -521,13 +520,11 @@ pimv2_addr_print(const u_char *bp, enum pimv2_addrtype at, int silent) switch (bp[0]) { case 1: af = AF_INET; - afstr = "IPv4"; len = 4; break; #ifdef INET6 case 2: af = AF_INET6; - afstr = "IPv6"; len = 16; break; #endif @@ -541,12 +538,10 @@ pimv2_addr_print(const u_char *bp, enum pimv2_addrtype at, int silent) switch (pimv2_addr_len) { case 4: af = AF_INET; - afstr = "IPv4"; break; #ifdef INET6 case 16: af = AF_INET6; - afstr = "IPv6"; break; #endif default: