]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Squelch some signed vs. unsigned warnings.
authorGuy Harris <[email protected]>
Sat, 2 Jan 2021 05:08:32 +0000 (21:08 -0800)
committerGuy Harris <[email protected]>
Sat, 2 Jan 2021 05:08:32 +0000 (21:08 -0800)
They showed up on 64-bit OpenBSD 6.6.

netdissect.h
print-aoe.c

index 8595287e09600d297a7b5a0b0d9f1d728ffd8238..1f8efc803618970ab90dc056a4b2de5d4b160a24 100644 (file)
@@ -99,7 +99,7 @@ typedef unsigned char nd_ipv6[16];
 /*
  * Use this for MAC addresses.
  */
-#define MAC_ADDR_LEN   6               /* length of MAC addresses */
+#define MAC_ADDR_LEN   6U              /* length of MAC addresses */
 typedef unsigned char nd_mac_addr[MAC_ADDR_LEN];
 
 /*
index c4f3758f3dcbdec84e0f684ff5a25674df7cc05d..0cd4299a7a6bf7b6ae205f0692b3727899c12ac7 100644 (file)
@@ -270,7 +270,7 @@ aoev1_mac_print(netdissect_options *ndo,
        cp += 1;
        len -= 1;
        ND_PRINT(", Dir Count: %u", dircount);
-       if (dircount * 8 > len)
+       if (dircount * 8U > len)
                goto invalid;
        /* directives */
        for (i = 0; i < dircount; i++) {