diff options
| author | Guy Harris <guy@alum.mit.edu> | 2012-06-10 13:31:14 -0700 |
|---|---|---|
| committer | Guy Harris <guy@alum.mit.edu> | 2012-06-10 13:31:14 -0700 |
| commit | 9c3e5c52c1e771aa0e4f833de56d575767e9669c (patch) | |
| tree | 1234f3fa03478b9fb3ae7b909a88e78fc5990633 | |
| parent | baff59beb6b067759bfde22d88a5a1c2cff62d05 (diff) | |
| download | tcpdump-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.c | 7 |
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; |
