summaryrefslogtreecommitdiffstats
path: root/ipv4ll.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-21 21:19:53 +0000
committerRoy Marples <roy@marples.name>2008-01-21 21:19:53 +0000
commitdc9be8a47ffa109785d348d92fdc6c915be734c4 (patch)
tree9698ffdf0c54d8981cc36aaf8357b26d3f964381 /ipv4ll.c
parentf4db036104af1015a4ffd7b3d3bcd55fc47d6292 (diff)
downloaddhcpcd-dc9be8a47ffa109785d348d92fdc6c915be734c4.tar.xz
Quiet some lint warnings.
Diffstat (limited to 'ipv4ll.c')
-rw-r--r--ipv4ll.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ipv4ll.c b/ipv4ll.c
index 31948b3c..9742b9a7 100644
--- a/ipv4ll.c
+++ b/ipv4ll.c
@@ -35,7 +35,7 @@
#ifdef ENABLE_IPV4LL
#ifndef ENABLE_ARP
-#error IPV4LL requires ARP
+ # error IPV4LL requires ARP
#endif
#define IPV4LL_LEASETIME 20
@@ -45,7 +45,8 @@ int ipv4ll_get_address (interface_t *iface, dhcp_t *dhcp) {
for (;;) {
addr.s_addr = htonl (LINKLOCAL_ADDR |
- ((abs (random ()) % 0xFD00) + 0x0100));
+ (((uint32_t) abs ((int) random ())
+ % 0xFD00) + 0x0100));
errno = 0;
if (! arp_claim (iface, addr))
break;