changeset 2536:fda9b4b61a5a draft

Fix compile warning
author Roy Marples <roy@marples.name>
date Sat, 07 Jun 2014 21:05:19 +0000
parents 1be691224285
children 46982ebba6f5
files ipv4ll.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ipv4ll.c	Sat Jun 07 21:02:29 2014 +0000
+++ b/ipv4ll.c	Sat Jun 07 21:05:19 2014 +0000
@@ -76,7 +76,7 @@
 
 	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;