diff options
| author | Roy Marples <roy@marples.name> | 2008-01-21 21:19:53 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-01-21 21:19:53 +0000 |
| commit | dc9be8a47ffa109785d348d92fdc6c915be734c4 (patch) | |
| tree | 9698ffdf0c54d8981cc36aaf8357b26d3f964381 /ipv4ll.c | |
| parent | f4db036104af1015a4ffd7b3d3bcd55fc47d6292 (diff) | |
| download | dhcpcd-dc9be8a47ffa109785d348d92fdc6c915be734c4.tar.xz | |
Quiet some lint warnings.
Diffstat (limited to 'ipv4ll.c')
| -rw-r--r-- | ipv4ll.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |
