]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Get rid of unused variables.
authorGuy Harris <[email protected]>
Thu, 18 Apr 2019 02:32:54 +0000 (19:32 -0700)
committerGuy Harris <[email protected]>
Thu, 18 Apr 2019 02:32:54 +0000 (19:32 -0700)
print-ipoib.c

index d38be32950ab3368291da91bb8e39c95a301903f..c835db9897ae3edaa7a4dabc7b7d6b990681abbd 100644 (file)
@@ -45,7 +45,6 @@ static inline void
 ipoib_hdr_print(netdissect_options *ndo, const u_char *bp, u_int length)
 {
        uint16_t ether_type;
-       char abuf[40];
 
        ether_type = GET_BE_U_2(&bp[40]);
        if (!ndo->ndo_qflag) {
@@ -73,7 +72,6 @@ ipoib_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen
        const u_char *orig_hdr = p;
        u_int orig_length;
        u_short ether_type;
-       u_short extracted_ether_type;
 
        if (caplen < IPOIB_HDRLEN || length < IPOIB_HDRLEN) {
                printf("[|ipoib]");