From: Roy Marples Date: Wed, 18 Jul 2007 11:39:30 +0000 (+0000) Subject: ==-1 is cheaper than <0 X-Git-Tag: v3.2.3~233 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11efe9f7068161eb22fd11fad040889bb84d5770;p=thirdparty%2Fdhcpcd.git ==-1 is cheaper than <0 --- diff --git a/arp.c b/arp.c index 83a97b43..8f09d1de 100644 --- a/arp.c +++ b/arp.c @@ -178,7 +178,7 @@ int arp_claim (interface_t *iface, struct in_addr address) memset (reply, 0, IP_MIN_FRAME_LENGTH); if ((bytes = get_packet (iface, (unsigned char *) reply, buffer, - &buflen, &bufpos)) < 0) + &buflen, &bufpos)) == -1) break; /* Only these types are recognised */