diff options
| author | Roy Marples <roy@marples.name> | 2018-04-18 20:33:50 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2018-04-18 20:33:50 +0100 |
| commit | 4ac2b28b09cab02ef96206b971a6dca833bcdba4 (patch) | |
| tree | ff8e8074e424a7f0b45a4fbf5e5e7ddaa66ea204 | |
| parent | 02d8ca67d3e1691bc241443b22a549bd7a8dc441 (diff) | |
| download | dhcpcd-4ac2b28b09cab02ef96206b971a6dca833bcdba4.tar.xz | |
Cast away a conversion warning.
| -rw-r--r-- | src/dhcp6.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } |
