From: Roy Marples Date: Fri, 13 Mar 2015 22:11:18 +0000 (+0000) Subject: Cast away some more gcc errors. X-Git-Tag: v6.8.0~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63c5ef0158883f767f9f738c4ec8e176d8345353;p=thirdparty%2Fdhcpcd.git Cast away some more gcc errors. --- diff --git a/ipv6nd.c b/ipv6nd.c index e11b86a3..9854af18 100644 --- 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; }