summaryrefslogtreecommitdiffstats
path: root/ipv4ll.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-02-11 17:56:22 +0000
committerRoy Marples <roy@marples.name>2009-02-11 17:56:22 +0000
commiteab2229cfa459ccbf8178ad4cdba68fbb7ebaf46 (patch)
treeb896daed217eb023e6e5b5d152e9e8a9a0e42169 /ipv4ll.c
parent63170def69524476fd43495ab1767b8690c0e9b5 (diff)
downloaddhcpcd-eab2229cfa459ccbf8178ad4cdba68fbb7ebaf46.tar.xz
Enforce NetBSD KNF style more
Diffstat (limited to 'ipv4ll.c')
-rw-r--r--ipv4ll.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/ipv4ll.c b/ipv4ll.c
index 810b2620..ecb9e26c 100644
--- a/ipv4ll.c
+++ b/ipv4ll.c
@@ -63,8 +63,8 @@ make_ipv4ll_lease(uint32_t old_addr)
for (;;) {
dhcp->yiaddr = htonl(LINKLOCAL_ADDR |
- (((uint32_t)abs((int)arc4random())
- % 0xFD00) + 0x0100));
+ (((uint32_t)abs((int)arc4random())
+ % 0xFD00) + 0x0100));
if (dhcp->yiaddr != old_addr &&
IN_LINKLOCAL(ntohl(dhcp->yiaddr)))
break;
@@ -91,7 +91,8 @@ start_ipv4ll(void *arg)
if (!iface->state->offer ||
!IN_LINKLOCAL(htonl(iface->state->offer->yiaddr)))
{
- syslog(LOG_INFO, "%s: probing for an IPv4LL address", iface->name);
+ syslog(LOG_INFO, "%s: probing for an IPv4LL address",
+ iface->name);
delete_timeout(NULL, iface);
free(iface->state->offer);
iface->state->offer = make_ipv4ll_lease(0);
@@ -122,7 +123,7 @@ handle_ipv4ll_failure(void *arg)
iface->state->offer = NULL;
if (++iface->state->conflicts > MAX_CONFLICTS) {
syslog(LOG_ERR, "%s: failed to acquire an IPv4LL address",
- iface->name);
+ iface->name);
iface->state->interval = RATE_LIMIT_INTERVAL / 2;
start_discover(iface);
} else {