diff options
| author | Roy Marples <roy@marples.name> | 2016-10-06 10:36:47 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2016-10-06 10:36:47 +0000 |
| commit | 81e9fc13d7d5560c4eef34554ded045cb903d4c9 (patch) | |
| tree | c1ccb7a8bf38dde6ebf8a59fd3e81762cc72e2bf /ipv6nd.c | |
| parent | 6b9eee73068d07a89457dc3e40a79a8f29fbe4ff (diff) | |
| download | dhcpcd-81e9fc13d7d5560c4eef34554ded045cb903d4c9.tar.xz | |
Cast away some more compile errors.
Diffstat (limited to 'ipv6nd.c')
| -rw-r--r-- | ipv6nd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |
