summaryrefslogtreecommitdiff
path: root/print-bgp.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <fx.lebail@yahoo.com>2015-07-12 13:51:58 +0200
committerFrancois-Xavier Le Bail <fx.lebail@yahoo.com>2015-07-12 13:51:58 +0200
commitc0ab3c4183d4fb0c3c89d2ef14df9397abdbc74a (patch)
tree3569efc9364ae9d0283e455dbc129b0c4e11dce4 /print-bgp.c
parent304cad51e516c690bd5cc42e4c1d6c3bd991f1c2 (diff)
downloadtcpdump-c0ab3c4183d4fb0c3c89d2ef14df9397abdbc74a.tar.gz
BGP: Fix a warning
Thanks to Gisle Vanem to catch this. The warning was: ./print-bgp.c: In function 'bgp_attr_print': ./print-bgp.c:2214:35: warning: declaration of 'atype' shadows a parameter [-Wshadow] u_int aflags, atype, alenlen, alen; ^ ./print-bgp.c:1322:22: warning: shadowed declaration is here [-Wshadow] u_int atype, const u_char *pptr, u_int len) ^
Diffstat (limited to 'print-bgp.c')
-rw-r--r--print-bgp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-bgp.c b/print-bgp.c
index 7c722999..0111c9a2 100644
--- a/print-bgp.c
+++ b/print-bgp.c
@@ -2211,7 +2211,7 @@ bgp_attr_print(netdissect_options *ndo,
len -=4;
while (len) {
- u_int aflags, atype, alenlen, alen;
+ u_int aflags, alenlen, alen;
ND_TCHECK2(tptr[0], 2);
if (len < 2)