projects
/
oweals
/
odhcpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24cf1c5
)
Remove unsigned / signed warning
author
Steven Barth
<steven@midlink.org>
Mon, 14 Oct 2013 20:56:44 +0000
(22:56 +0200)
committer
Steven Barth
<steven@midlink.org>
Mon, 14 Oct 2013 20:56:44 +0000
(22:56 +0200)
src/dhcpv6-ia.c
patch
|
blob
|
history
diff --git
a/src/dhcpv6-ia.c
b/src/dhcpv6-ia.c
index 89d3a1582053af82f85fa17ce62681629e483409..ccf7a58e6861fb6a1f8b219019ce4824cf848fc7 100644
(file)
--- a/
src/dhcpv6-ia.c
+++ b/
src/dhcpv6-ia.c
@@
-408,7
+408,8
@@
static void update(struct interface *iface)
if (addr[i].addr.s6_addr32[0] != iface->ia_addr[i].addr.s6_addr32[0] ||
addr[i].addr.s6_addr32[1] != iface->ia_addr[i].addr.s6_addr32[1] ||
(addr[i].preferred > 0) != (iface->ia_addr[i].preferred > 0) ||
- (addr[i].valid > now + 7200) != (iface->ia_addr[i].valid > now + 7200))
+ (addr[i].valid > (uint32_t)now + 7200) !=
+ (iface->ia_addr[i].valid > (uint32_t)now + 7200))
change = true;
if (change) {