]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-pktap.c
CI: Add warning exemptions for Sun C (suncc-5.15) on Solaris 10
[tcpdump] / print-pktap.c
index b9cfdab0b871bf0fb743120285084731ae7c5665..d1c391d5ce1b21adef3bb814c671f2b3c1f48237 100644 (file)
@@ -21,9 +21,7 @@
 
 /* \summary: Apple's DLT_PKTAP printer */
 
-#ifdef HAVE_CONFIG_H
 #include <config.h>
-#endif
 
 #include "netdissect-stdinc.h"
 
@@ -109,8 +107,8 @@ pktap_if_print(netdissect_options *ndo,
 
        ndo->ndo_protocol = "pktap";
        if (length < sizeof(pktap_header_t)) {
-               ND_PRINT(" (packet too short, %u < %u)",
-                        length, (unsigned)sizeof(pktap_header_t));
+               ND_PRINT(" (packet too short, %u < %zu)",
+                        length, sizeof(pktap_header_t));
                goto invalid;
        }
        hdr = (const pktap_header_t *)p;
@@ -124,8 +122,8 @@ pktap_if_print(netdissect_options *ndo,
                 * is the length supplied so that the header can
                 * be expanded in the future)?
                 */
-               ND_PRINT(" (pkt_len too small, %u < %u)",
-                        hdrlen, (unsigned)sizeof(pktap_header_t));
+               ND_PRINT(" (pkt_len too small, %u < %zu)",
+                        hdrlen, sizeof(pktap_header_t));
                goto invalid;
        }
        if (hdrlen > length) {