mirror of
https://github.com/rsmarples/dhcpcd.git
synced 2024-11-27 12:03:45 +08:00
Cast away warning.
This commit is contained in:
parent
e69793ffc1
commit
8d6bf4cb8c
2
dhcp6.c
2
dhcp6.c
@ -458,7 +458,7 @@ dhcp6_delegateaddr(struct in6_addr *addr, struct interface *ifp,
|
||||
#define BIT_MASK(len) (BIT(len) - 1)
|
||||
if (ia->sla_max == 0)
|
||||
/* Work out the real sla_max from our bits used */
|
||||
ia->sla_max = BIT_MASK(asla.prefix_len -
|
||||
ia->sla_max = (uint32_t)BIT_MASK(asla.prefix_len -
|
||||
prefix->prefix_len);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user