summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-01-01 21:08:32 -0800
committerGuy Harris <gharris@sonic.net>2021-01-01 21:08:32 -0800
commit399c5ebdd0432e413ab146bd65ae01f565db1edc (patch)
tree753ca646ceb225f7a3df1e37b3df57a21e8c47fb
parentd1be880176880ff8cc20ee8647e93057ec835416 (diff)
downloadtcpdump-399c5ebdd0432e413ab146bd65ae01f565db1edc.tar.gz
Squelch some signed vs. unsigned warnings.
They showed up on 64-bit OpenBSD 6.6.
-rw-r--r--netdissect.h2
-rw-r--r--print-aoe.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/netdissect.h b/netdissect.h
index 8595287e..1f8efc80 100644
--- a/netdissect.h
+++ b/netdissect.h
@@ -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];
/*
diff --git a/print-aoe.c b/print-aoe.c
index c4f3758f..0cd4299a 100644
--- a/print-aoe.c
+++ b/print-aoe.c
@@ -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++) {