summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-06-10 13:31:14 -0700
committerGuy Harris <guy@alum.mit.edu>2012-06-10 13:31:14 -0700
commit9c3e5c52c1e771aa0e4f833de56d575767e9669c (patch)
tree1234f3fa03478b9fb3ae7b909a88e78fc5990633
parentbaff59beb6b067759bfde22d88a5a1c2cff62d05 (diff)
downloadtcpdump-4.3.0.tar.gz
No declarations in the middle of a block - not all C compilers support that.tcpdump_4_3rel0tcpdump-4.3.0
-rw-r--r--print-bgp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/print-bgp.c b/print-bgp.c
index 850ce050..c1e382fd 100644
--- a/print-bgp.c
+++ b/print-bgp.c
@@ -2359,6 +2359,10 @@ bgp_update_print(const u_char *dat, int length)
int len;
int i;
char tokbuf[TOKBUFSIZE];
+#ifndef INET6
+ char buf[MAXHOSTNAMELEN + 100];
+ int wpfx;
+#endif
TCHECK2(dat[0], BGP_SIZE);
if (length < BGP_SIZE)
@@ -2388,9 +2392,6 @@ bgp_update_print(const u_char *dat, int length)
p += withdrawn_routes_len;
length -= withdrawn_routes_len;
#else
- char buf[MAXHOSTNAMELEN + 100];
- int wpfx;
-
if (withdrawn_routes_len < 2)
goto trunc;
length -= 2;