summaryrefslogtreecommitdiffstats
path: root/ipv4ll.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 /ipv4ll.c
parentdf6a66f6b7ae9112c66ad4f5ff37d3fb7ec9ef68 (diff)
downloaddhcpcd-f4db036104af1015a4ffd7b3d3bcd55fc47d6292.tar.xz
Prefer for (;;) over while (1)
Diffstat (limited to 'ipv4ll.c')
-rw-r--r--ipv4ll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipv4ll.c b/ipv4ll.c
index e6ecf87c..31948b3c 100644
--- a/ipv4ll.c
+++ b/ipv4ll.c
@@ -43,7 +43,7 @@
int ipv4ll_get_address (interface_t *iface, dhcp_t *dhcp) {
struct in_addr addr;
- while (1) {
+ for (;;) {
addr.s_addr = htonl (LINKLOCAL_ADDR |
((abs (random ()) % 0xFD00) + 0x0100));
errno = 0;