]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile warning
authorRoy Marples <roy@marples.name>
Sat, 7 Jun 2014 21:05:19 +0000 (21:05 +0000)
committerRoy Marples <roy@marples.name>
Sat, 7 Jun 2014 21:05:19 +0000 (21:05 +0000)
ipv4ll.c

index c75b21b6b1f23d4fa304f8fda4ec06a9bb77656d..bc3170794609f5d90fb5256318324ddc0ae2262f 100644 (file)
--- a/ipv4ll.c
+++ b/ipv4ll.c
@@ -76,7 +76,7 @@ ipv4ll_find_lease(uint32_t old_addr)
 
        for (;;) {
                addr = htonl(LINKLOCAL_ADDR |
-                   (uint32_t)abs((int)arc4random_uniform(0xFD00)) + 0x0100);
+                   (uint32_t)(abs((int)arc4random_uniform(0xFD00)) + 0x0100));
                if (addr != old_addr &&
                    IN_LINKLOCAL(ntohl(addr)))
                        break;