summaryrefslogtreecommitdiffstats
path: root/sys/lib/libsa/arp.c
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>1998-02-23 20:32:18 +0000
committerniklas <niklas@openbsd.org>1998-02-23 20:32:18 +0000
commitbfcf73bf8f916114e53d693bd6d3de3ea3efa80f (patch)
tree32a55c26c8074d64b2d817a358517b20007e1f35 /sys/lib/libsa/arp.c
parentKNF (diff)
downloadwireguard-openbsd-bfcf73bf8f916114e53d693bd6d3de3ea3efa80f.tar.xz
wireguard-openbsd-bfcf73bf8f916114e53d693bd6d3de3ea3efa80f.zip
strong signedness typing a version of egcs I tried months ago wanted
me to fix. I am not sure these are necessary for gas 2.8 but I figure I would commit them anyhow.
Diffstat (limited to 'sys/lib/libsa/arp.c')
-rw-r--r--sys/lib/libsa/arp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/lib/libsa/arp.c b/sys/lib/libsa/arp.c
index 60f4c155b8d..46fd2d0003e 100644
--- a/sys/lib/libsa/arp.c
+++ b/sys/lib/libsa/arp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arp.c,v 1.5 1996/12/08 15:15:45 niklas Exp $ */
+/* $OpenBSD: arp.c,v 1.6 1998/02/23 20:32:18 niklas Exp $ */
/* $NetBSD: arp.c,v 1.15 1996/10/13 02:28:58 christos Exp $ */
/*
@@ -183,7 +183,7 @@ arprecv(d, pkt, len, tleft)
n = readether(d, pkt, len, tleft, &etype);
errno = 0; /* XXX */
- if (n == -1 || n < sizeof(struct ether_arp)) {
+ if (n < 0 || (size_t)n < sizeof(struct ether_arp)) {
#ifdef ARP_DEBUG
if (debug)
printf("bad len=%d\n", n);