From: Roy Marples Date: Tue, 21 Apr 2015 16:20:04 +0000 (+0000) Subject: Fix some more -Wconversion issues. X-Git-Tag: v6.8.2~21 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=b628521165b1f987c9eb40f105b9285c76827190;p=thirdparty%2Fdhcpcd.git Fix some more -Wconversion issues. --- diff --git a/ipv4.h b/ipv4.h index a9fca8fe..2b7f64da 100644 --- a/ipv4.h +++ b/ipv4.h @@ -40,7 +40,7 @@ struct rt { unsigned int metric; #endif struct in_addr src; - uint8_t flags; + unsigned int flags; }; TAILQ_HEAD(rt_head, rt); diff --git a/ipv6nd.c b/ipv6nd.c index 4f24163a..ff389a44 100644 --- a/ipv6nd.c +++ b/ipv6nd.c @@ -1388,7 +1388,7 @@ ipv6nd_expirera(void *arg) struct ra *rap, *ran; struct ra_opt *rao, *raon; struct timespec now, lt, expire, next; - int expired, valid; + uint8_t expired, valid; ifp = arg; get_monotonic(&now); @@ -1477,7 +1477,7 @@ void ipv6nd_drop(struct interface *ifp) { struct ra *rap; - int expired = 0; + uint8_t expired = 0; TAILQ_HEAD(rahead, ra) rtrs; if (ifp->ctx->ipv6 == NULL)