mirror of
https://github.com/NetworkConfiguration/dhcpcd.git
synced 2026-01-26 14:13:26 +00:00
Fix a cast warning on DragonflyBSD
This commit is contained in:
parent
9f94e9c7aa
commit
410bf77064
@ -1084,7 +1084,7 @@ parse_option(struct dhcpcd_ctx *ctx, const char *ifname, struct if_options *ifo,
|
||||
}
|
||||
|
||||
arg = p + 1;
|
||||
s = sizeof(ifo->vendor) - 1 - ifo->vendor[0] - 2;
|
||||
s = (ssize_t)sizeof(ifo->vendor) - 1 - ifo->vendor[0] - 2;
|
||||
if (inet_aton(arg, &addr) == 1) {
|
||||
if (s < 6) {
|
||||
s = -1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user