From: Roy Marples Date: Wed, 18 Apr 2018 19:33:50 +0000 (+0100) Subject: Cast away a conversion warning. X-Git-Tag: v7.0.4~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ac2b28b09cab02ef96206b971a6dca833bcdba4;p=thirdparty%2Fdhcpcd.git Cast away a conversion warning. --- diff --git a/src/dhcp6.c b/src/dhcp6.c index e03b156c..1fd644fc 100644 --- a/src/dhcp6.c +++ b/src/dhcp6.c @@ -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)); }