]> The Tcpdump Group git mirrors - tcpdump/commitdiff
DNS: Use PRIsize format instead of using a cast
authorFrancois-Xavier Le Bail <[email protected]>
Sun, 4 Aug 2019 16:56:08 +0000 (18:56 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Sun, 4 Aug 2019 16:56:08 +0000 (18:56 +0200)
print-domain.c

index 63705db5e0fdccea1caad62614a0886fa57f9880..55f3f471ea4d0f1c0ae78865d37e676570e2bf0e 100644 (file)
@@ -625,7 +625,7 @@ domain_print(netdissect_options *ndo,
 
        if(length < sizeof(*np)) {
                nd_print_protocol(ndo);
-               ND_PRINT(" [length %u < %lu]", length, (unsigned long)sizeof(*np));
+               ND_PRINT(" [length %u < %" PRIsize "]" , length, sizeof(*np));
                nd_print_invalid(ndo);
                return;
        }