From: Roy Marples Date: Fri, 9 May 2025 11:56:33 +0000 (+0100) Subject: Fix a cast warning on DragonflyBSD X-Git-Tag: v10.2.3~3 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=410bf7706459d23d95fb619d00a910320ac9ffbe;p=thirdparty%2Fdhcpcd.git Fix a cast warning on DragonflyBSD --- diff --git a/src/if-options.c b/src/if-options.c index 06ef1cb8..1b256fa9 100644 --- a/src/if-options.c +++ b/src/if-options.c @@ -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;