]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Cast away a conversion warning.
authorRoy Marples <roy@marples.name>
Wed, 18 Apr 2018 19:33:50 +0000 (20:33 +0100)
committerRoy Marples <roy@marples.name>
Wed, 18 Apr 2018 19:33:50 +0000 (20:33 +0100)
src/dhcp6.c

index e03b156cc84ce78eefde13ad5390b2fbe821bb56..1fd644fcfa7b2a8808024a591e30be3df59e065a 100644 (file)
@@ -228,7 +228,7 @@ dhcp6_makeuser(void *data, const struct interface *ifp)
        }
        if (data != NULL) {
                o.code = htons(D6_OPTION_USER_CLASS);
-               o.len = htons(olen);
+               o.len = htons((uint16_t)olen);
                memcpy(data, &o, sizeof(o));
        }