]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Cast away some more gcc errors.
authorRoy Marples <roy@marples.name>
Fri, 13 Mar 2015 22:11:18 +0000 (22:11 +0000)
committerRoy Marples <roy@marples.name>
Fri, 13 Mar 2015 22:11:18 +0000 (22:11 +0000)
ipv6nd.c

index e11b86a331c505c525833f8446a20de6475cd669..9854af18f84976bbfbaf0a86134c01895b572f70 100644 (file)
--- a/ipv6nd.c
+++ b/ipv6nd.c
@@ -248,7 +248,7 @@ ipv6nd_makersprobe(struct interface *ifp)
        rs->nd_rs_reserved = 0;
        nd = (struct nd_opt_hdr *)(state->rs + sizeof(*rs));
        nd->nd_opt_type = ND_OPT_SOURCE_LINKADDR;
-       nd->nd_opt_len = (ROUNDUP8(ifp->hwlen + 2)) >> 3;
+       nd->nd_opt_len = (uint8_t)((ROUNDUP8(ifp->hwlen + 2)) >> 3);
        memcpy(nd + 1, ifp->hwaddr, ifp->hwlen);
        return 0;
 }