]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-enc.c
Update the "Error converting time" tests for packet times
[tcpdump] / print-enc.c
index 5a781af4fbdf62608ab2f1021b62e30f0effb7ae..928b02c8870e0eb83534b2d71db45b987edbbc4c 100644 (file)
@@ -81,9 +81,9 @@ struct enchdr {
        nd_uint32_t flags;
 };
 
-#define ENC_PRINT_TYPE(wh, xf, nam) \
+#define ENC_PRINT_TYPE(wh, xf, name) \
        if ((wh) & (xf)) { \
-               ND_PRINT("%s%s", nam, (wh) == (xf) ? "): " : ","); \
+               ND_PRINT("%s%s", name, (wh) == (xf) ? "): " : ","); \
                (wh) &= ~(xf); \
        }
 
@@ -100,7 +100,6 @@ enc_if_print(netdissect_options *ndo,
              const struct pcap_pkthdr *h, const u_char *p)
 {
        u_int length = h->len;
-       u_int caplen = h->caplen;
        u_int af, flags;
        const struct enchdr *hdr;
 
@@ -144,7 +143,6 @@ enc_if_print(netdissect_options *ndo,
        ND_PRINT("SPI 0x%08x: ", GET_BE_U_4(hdr->spi));
 
        length -= ENC_HDRLEN;
-       caplen -= ENC_HDRLEN;
        p += ENC_HDRLEN;
 
        switch (af) {