Skip to content

Commit 410bf77

Browse files
committed
Fix a cast warning on DragonflyBSD
1 parent 9f94e9c commit 410bf77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/if-options.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ parse_option(struct dhcpcd_ctx *ctx, const char *ifname, struct if_options *ifo,
10841084
}
10851085

10861086
arg = p + 1;
1087-
s = sizeof(ifo->vendor) - 1 - ifo->vendor[0] - 2;
1087+
s = (ssize_t)sizeof(ifo->vendor) - 1 - ifo->vendor[0] - 2;
10881088
if (inet_aton(arg, &addr) == 1) {
10891089
if (s < 6) {
10901090
s = -1;

0 commit comments

Comments
 (0)