From: Roy Marples Date: Fri, 1 May 2020 10:18:05 +0000 (+0100) Subject: privsep: Discard the freopen result. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c0964901e874de48cdf8b7b4efa82143a4875d3;p=thirdparty%2Fdhcpcd.git privsep: Discard the freopen result. --- diff --git a/src/privsep.c b/src/privsep.c index c30bf90f..6ecc17f0 100644 --- a/src/privsep.c +++ b/src/privsep.c @@ -252,8 +252,8 @@ ps_dostart(struct dhcpcd_ctx *ctx, if (!(ctx->options & DHCPCD_DEBUG) && (!(ctx->options & DHCPCD_TEST) || loggetopts() & LOGERR_QUIET)) { - freopen(_PATH_DEVNULL, "w", stdout); - freopen(_PATH_DEVNULL, "w", stderr); + (void)freopen(_PATH_DEVNULL, "w", stdout); + (void)freopen(_PATH_DEVNULL, "w", stderr); } if (flags & PSF_DROPPRIVS)