summaryrefslogtreecommitdiffstats
path: root/dhcp.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-10-29 08:13:15 +0000
committerRoy Marples <roy@marples.name>2008-10-29 08:13:15 +0000
commitb85bcbf82d1c0547415c76614b8730a03ff2e025 (patch)
tree9fcd76b1b52baf5600973218ac93ce1ec5823f8f /dhcp.c
parent29a4a2041111d9cfe3933832d404fba278933454 (diff)
downloaddhcpcd-b85bcbf82d1c0547415c76614b8730a03ff2e025.tar.xz
~0U is better than just ~0 for this.
Diffstat (limited to 'dhcp.c')
-rw-r--r--dhcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcp.c b/dhcp.c
index 4c30dfca..c8631e39 100644
--- a/dhcp.c
+++ b/dhcp.c
@@ -537,7 +537,7 @@ decode_rfc3442_rt(int dl, const uint8_t *data)
if (ocets > 0) {
memcpy(&rt->dest.s_addr, p, ocets);
p += ocets;
- rt->net.s_addr = htonl(~0 << (32 - cidr));
+ rt->net.s_addr = htonl(~0U << (32 - cidr));
}
/* Finally, snag the router */