From: Roy Marples Date: Fri, 4 Aug 2017 19:17:37 +0000 (+0100) Subject: Cast away some compile warnings. X-Git-Tag: v7.0.0-rc2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce4d79bbd4eabb7f3f18fbf181bfe03467d06497;p=thirdparty%2Fdhcpcd.git Cast away some compile warnings. --- diff --git a/src/dhcp6.c b/src/dhcp6.c index 337b135a..47655330 100644 --- a/src/dhcp6.c +++ b/src/dhcp6.c @@ -2909,19 +2909,19 @@ dhcp6_bind(struct interface *ifp, const char *op) timespecsub(&now, &state->acquired, &diff); if (state->renew && state->renew != ND6_INFINITE_LIFETIME) { if (state->renew > diff.tv_sec) - state->renew -= diff.tv_sec; + state->renew -= (uint32_t)diff.tv_sec; else state->renew = 0; } if (state->rebind && state->rebind != ND6_INFINITE_LIFETIME) { if (state->rebind > diff.tv_sec) - state->rebind -= diff.tv_sec; + state->rebind -= (uint32_t)diff.tv_sec; else state->rebind = 0; } if (state->expire && state->expire != ND6_INFINITE_LIFETIME) { if (state->expire > diff.tv_sec) - state->expire -= diff.tv_sec; + state->expire -= (uint32_t)diff.tv_sec; else { if (!(ifp->options->options & DHCPCD_LASTLEASE_EXTEND))