Fix a cast warning on DragonflyBSD

This commit is contained in:
Roy Marples 2025-05-09 12:56:33 +01:00
parent 9f94e9c7aa
commit 410bf77064

View File

@ -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;