]> The Tcpdump Group git mirrors - tcpdump/commitdiff
DCCP: Use %zu to print sizeof values
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 4 Nov 2020 15:18:04 +0000 (16:18 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 4 Nov 2020 15:28:36 +0000 (16:28 +0100)
print-dccp.c

index 44fa3704c55304fd35b796d83e8e0a1e79029e0b..542f7138ff32c2c05b1e9fce03a24cd8189156e4 100644 (file)
@@ -294,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;
        }