diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-02-23 20:32:32 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-02-23 20:32:32 +0000 |
commit | 4c09c99a68011393b654ebbfbb82c80be5afe624 (patch) | |
tree | ac02c49c920c947733e8ff29dc5a8bf671481295 /sys/lib/libsa/rarp.c | |
parent | 4c88de7dd0e551532429f98773815d7261b439e6 (diff) |
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/rarp.c')
-rw-r--r-- | sys/lib/libsa/rarp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/lib/libsa/rarp.c b/sys/lib/libsa/rarp.c index 23196ecf769..0f24ebbfbed 100644 --- a/sys/lib/libsa/rarp.c +++ b/sys/lib/libsa/rarp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rarp.c,v 1.5 1996/12/08 15:15:55 niklas Exp $ */ +/* $OpenBSD: rarp.c,v 1.6 1998/02/23 20:32:28 niklas Exp $ */ /* $NetBSD: rarp.c,v 1.13 1996/10/13 02:29:05 christos Exp $ */ /* @@ -168,7 +168,7 @@ rarprecv(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 RARP_DEBUG if (debug) printf("bad len=%d\n", n); |