mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-12-02 06:24:21 +08:00
No declarations in the middle of a block - not all C compilers support that.
This commit is contained in:
parent
baff59beb6
commit
9c3e5c52c1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user