From: Roy Marples Date: Fri, 1 May 2020 10:19:49 +0000 (+0100) Subject: dhcpcd: Discard the freopen result. X-Git-Tag: v9.1.0~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b1a66dc28b10e175d7dd0fb2aad09ea750c154f;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 }