From: Roy Marples Date: Fri, 1 May 2020 10:19:49 +0000 (+0100) Subject: dhcpcd: Discard the freopen result. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edec47c041ee8d8696f2f9fcf2962b017b291f06;p=thirdparty%2Fdhcpcd.git dhcpcd: Discard the freopen result. --- diff --git a/src/dhcpcd.c b/src/dhcpcd.c index 839209f9..71ae45ac 100644 --- a/src/dhcpcd.c +++ b/src/dhcpcd.c @@ -357,8 +357,8 @@ dhcpcd_daemonise(struct dhcpcd_ctx *ctx) eloop_event_delete(ctx->eloop, ctx->fork_fd); close(ctx->fork_fd); ctx->fork_fd = -1; - freopen(_PATH_DEVNULL, "w", stdout); - freopen(_PATH_DEVNULL, "w", stderr); + (void)freopen(_PATH_DEVNULL, "w", stdout); + (void)freopen(_PATH_DEVNULL, "w", stderr); #endif }