]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Cast away some more compile errors.
authorRoy Marples <roy@marples.name>
Thu, 6 Oct 2016 10:36:47 +0000 (10:36 +0000)
committerRoy Marples <roy@marples.name>
Thu, 6 Oct 2016 10:36:47 +0000 (10:36 +0000)
ipv6nd.c

index ee6035e3f81b8b770af8860aa9a7ae01be795c82..1bcd0e7c7b804f884d6a5774240c7cde84a9cb9e 100644 (file)
--- 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;