From: Roy Marples Date: Mon, 30 Mar 2020 15:56:12 +0000 (+0100) Subject: BSD: Don't warn if the OS does not support miss filtering. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5d176e3344ede375b693c0e925579ed5cf0c5f5;p=thirdparty%2Fdhcpcd.git BSD: Don't warn if the OS does not support miss filtering. The compile warning is enough. --- diff --git a/src/route.c b/src/route.c index 1b9c26f0..401ce07c 100644 --- a/src/route.c +++ b/src/route.c @@ -729,7 +729,7 @@ rt_build(struct dhcpcd_ctx *ctx, int af) } #ifdef BSD - if (if_missfilter_apply(ctx) == -1) + if (if_missfilter_apply(ctx) == -1 && errno != ENOTSUP) logerr("if_missfilter_apply"); #endif