diff options
author | Hans Dedecker <hans.dedecker@technicolor.com> | 2015-08-10 18:07:13 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2015-08-13 12:02:05 +0200 |
commit | 56b4e844baad6ea8eaaa6a4442583fa5ffa41bc7 (patch) | |
tree | eb25cd903c66fa7c220f20f11a41f5d0b3a722a6 /src/dhcpv6-ia.c | |
parent | 0ff39e3a124125914d2142d7127eab3a485ab34a (diff) |
router: Fix compile issues
Fix compile issue due to comparison between signed and unsigned integers
Diffstat (limited to 'src/dhcpv6-ia.c')
-rw-r--r-- | src/dhcpv6-ia.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcpv6-ia.c b/src/dhcpv6-ia.c index c5f8783..a4598df 100644 --- a/src/dhcpv6-ia.c +++ b/src/dhcpv6-ia.c @@ -572,7 +572,7 @@ void dhcpv6_ia_postupdate(struct interface *iface, time_t now) int minprefix = -1; for (size_t i = 0; i < iface->ia_addr_len; ++i) { - if (iface->ia_addr[i].preferred > now && + if (iface->ia_addr[i].preferred > (uint32_t)now && iface->ia_addr[i].prefix < 64 && iface->ia_addr[i].prefix > minprefix) minprefix = iface->ia_addr[i].prefix; |