summaryrefslogtreecommitdiffstats
path: root/ipv6nd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-10-06 10:36:47 +0000
committerRoy Marples <roy@marples.name>2016-10-06 10:36:47 +0000
commit81e9fc13d7d5560c4eef34554ded045cb903d4c9 (patch)
treec1ccb7a8bf38dde6ebf8a59fd3e81762cc72e2bf /ipv6nd.c
parent6b9eee73068d07a89457dc3e40a79a8f29fbe4ff (diff)
downloaddhcpcd-81e9fc13d7d5560c4eef34554ded045cb903d4c9.tar.xz
Cast away some more compile errors.
Diffstat (limited to 'ipv6nd.c')
-rw-r--r--ipv6nd.c4
1 files changed, 2 insertions, 2 deletions
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;