]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix some more -Wconversion issues.
authorRoy Marples <roy@marples.name>
Tue, 21 Apr 2015 16:20:04 +0000 (16:20 +0000)
committerRoy Marples <roy@marples.name>
Tue, 21 Apr 2015 16:20:04 +0000 (16:20 +0000)
ipv4.h
ipv6nd.c

diff --git a/ipv4.h b/ipv4.h
index a9fca8fee2624ec197c63a651879bef8ee1bcc55..2b7f64da55e5c0190cd7b9155498c237d97855e9 100644 (file)
--- 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);
 
index 4f24163aa7286ca4b1046a8fcb475df1297fe67f..ff389a44c74a4f75eecbce4011a56c5ec1418458 100644 (file)
--- 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)