]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
==-1 is cheaper than <0
authorRoy Marples <roy@marples.name>
Wed, 18 Jul 2007 11:39:30 +0000 (11:39 +0000)
committerRoy Marples <roy@marples.name>
Wed, 18 Jul 2007 11:39:30 +0000 (11:39 +0000)
arp.c

diff --git a/arp.c b/arp.c
index 83a97b43b3d64a2a12e3115dcc84804702cf18cf..8f09d1de01e4562875c5401ad73568555743b6a9 100644 (file)
--- 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 */