]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
privsep: Discard the freopen result.
authorRoy Marples <roy@marples.name>
Fri, 1 May 2020 10:18:05 +0000 (11:18 +0100)
committerRoy Marples <roy@marples.name>
Fri, 1 May 2020 10:18:05 +0000 (11:18 +0100)
src/privsep.c

index c30bf90f84bb4677c1d897ce4d183e9058d213c2..6ecc17f0a47c32b34ff2db40e9f6e32840246f0b 100644 (file)
@@ -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)