summaryrefslogtreecommitdiffstats
path: root/arp.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-21 16:08:42 +0000
committerRoy Marples <roy@marples.name>2008-01-21 16:08:42 +0000
commitf4db036104af1015a4ffd7b3d3bcd55fc47d6292 (patch)
tree122f6aa8767888725325e73d434bb36b9cac920e /arp.c
parentdf6a66f6b7ae9112c66ad4f5ff37d3fb7ec9ef68 (diff)
downloaddhcpcd-f4db036104af1015a4ffd7b3d3bcd55fc47d6292.tar.xz
Prefer for (;;) over while (1)
Diffstat (limited to 'arp.c')
-rw-r--r--arp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arp.c b/arp.c
index 538bdfdb..acc24118 100644
--- a/arp.c
+++ b/arp.c
@@ -141,7 +141,7 @@ int arp_claim (interface_t *iface, struct in_addr address)
buffer = xmalloc (iface->buffer_length);
reply = xmalloc (iface->buffer_length);
- while (1) {
+ for (;;) {
struct timeval tv;
int bufpos = -1;
int buflen = iface->buffer_length;