From: Roy Marples Date: Fri, 16 Jan 2015 22:53:40 +0000 (+0000) Subject: time_t is not always unsigned. X-Git-Tag: v6.7.0~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c36a7aca232c37fd26e7ed2fb3a8143f8ab60d6f;p=thirdparty%2Fdhcpcd.git time_t is not always unsigned. --- diff --git a/ipv6.c b/ipv6.c index 25f5b22b..2142c173 100644 --- a/ipv6.c +++ b/ipv6.c @@ -640,9 +640,9 @@ ipv6_addaddr(struct ipv6_addr *ap, const struct timeval *now) } timersub(now, &ap->acquired, &n); if (ap->prefix_pltime != ND6_INFINITE_LIFETIME) - ap->prefix_pltime -= n.tv_sec; + ap->prefix_pltime -= (uint32_t)n.tv_sec; if (ap->prefix_vltime != ND6_INFINITE_LIFETIME) - ap->prefix_vltime -= n.tv_sec; + ap->prefix_vltime -= (uint32_t)n.tv_sec; } syslog(ap->flags & IPV6_AF_NEW ? LOG_INFO : LOG_DEBUG,