changeset 4259:bf08893bc7fd draft

Cast away a conversion warning.
author Roy Marples <roy@marples.name>
date Wed, 18 Apr 2018 20:33:50 +0100
parents f7795e713bf5
children 8c6250af2ed4
files src/dhcp6.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dhcp6.c	Tue Apr 17 11:36:32 2018 +0100
+++ b/src/dhcp6.c	Wed Apr 18 20:33:50 2018 +0100
@@ -228,7 +228,7 @@
 	}
 	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));
 	}