]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-dccp.c
OSPF: Use %zu to print sizeof values
[tcpdump] / print-dccp.c
index cb287f909193e5fb6c6bdfa15be4500f8fedd71d..542f7138ff32c2c05b1e9fce03a24cd8189156e4 100644 (file)
@@ -18,7 +18,6 @@
 #include "netdissect-stdinc.h"
 
 #include <stdio.h>
-#include <string.h>
 
 #include "netdissect.h"
 #include "addrtoname.h"
@@ -295,8 +294,8 @@ dccp_print(netdissect_options *ndo, const u_char *bp, const u_char *data2,
        if (cp > ndo->ndo_snapend)
                goto trunc;
        if (len < sizeof(struct dccp_hdr)) {
-               ND_PRINT("truncated-dccp - %u bytes missing!",
-                        (u_int)sizeof(struct dccp_hdr) - len);
+               ND_PRINT("truncated-dccp - %zu bytes missing!",
+                        sizeof(struct dccp_hdr) - len);
                return;
        }
 
@@ -510,7 +509,6 @@ dccp_print(netdissect_options *ndo, const u_char *bp, const u_char *data2,
        return;
 trunc:
        nd_print_trunc(ndo);
-       return;
 }
 
 static const struct tok dccp_option_values[] = {