]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Get rid of an unused variable.
authorGuy Harris <[email protected]>
Mon, 18 Dec 2017 20:29:08 +0000 (12:29 -0800)
committerGuy Harris <[email protected]>
Mon, 18 Dec 2017 20:29:08 +0000 (12:29 -0800)
print-bgp.c

index 8a04761343682537a1a1afd075e14efc4af4ae6e..894e413b01edf48379f8e108646ad7067de7b9b8 100644 (file)
@@ -2601,7 +2601,6 @@ static void
 bgp_update_print(netdissect_options *ndo,
                  const u_char *dat, u_int length)
 {
-    const struct bgp *bgp_header;
     const u_char *p;
     u_int withdrawn_routes_len;
     char buf[MAXHOSTNAMELEN + 100];
@@ -2614,7 +2613,6 @@ bgp_update_print(netdissect_options *ndo,
     ND_TCHECK_LEN(dat, BGP_SIZE);
     if (length < BGP_SIZE)
         goto trunc;
-    bgp_header = (const struct bgp *)dat;
     p = dat + BGP_SIZE;
     length -= BGP_SIZE;