]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Cast away some compile warnings.
authorRoy Marples <roy@marples.name>
Fri, 4 Aug 2017 19:17:37 +0000 (20:17 +0100)
committerRoy Marples <roy@marples.name>
Fri, 4 Aug 2017 19:17:37 +0000 (20:17 +0100)
src/dhcp6.c

index 337b135acb455c5b46e75ec11f20e80fcf8ca535..4765533053dcc492ec455e20ff68dce4ca5c01b2 100644 (file)
@@ -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))