From: Roy Marples Date: Thu, 6 Oct 2016 10:36:47 +0000 (+0000) Subject: Cast away some more compile errors. X-Git-Tag: v7.0.0-beta1~141 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81e9fc13d7d5560c4eef34554ded045cb903d4c9;p=thirdparty%2Fdhcpcd.git Cast away some more compile errors. --- diff --git a/ipv6nd.c b/ipv6nd.c index ee6035e3..1bcd0e7c 100644 --- a/ipv6nd.c +++ b/ipv6nd.c @@ -1190,7 +1190,7 @@ ipv6nd_getoption(struct dhcpcd_ctx *ctx, return NULL; } memcpy(&ndo, od, sizeof(ndo)); - i = ndo.nd_opt_len * 8; + i = (size_t)(ndo.nd_opt_len * 8); if (i > ol) { errno = EINVAL; return NULL; @@ -1271,7 +1271,7 @@ ipv6nd_env(char **env, const char *prefix, const struct interface *ifp) p += olen, len -= olen) { memcpy(&ndo, p, sizeof(ndo)); - olen = ndo.nd_opt_len * 8; + olen = (size_t)(ndo.nd_opt_len * 8); if (olen > len) { errno = EINVAL; break;