summaryrefslogtreecommitdiffstats
path: root/src/privsep.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-05-01 11:18:05 +0100
committerRoy Marples <roy@marples.name>2020-05-01 11:18:05 +0100
commit1c0964901e874de48cdf8b7b4efa82143a4875d3 (patch)
treec9fd290b1aea0ad680a09fa2075f882354adae72 /src/privsep.c
parent92abca1235566a9292b94e1741ed3337302ff71a (diff)
downloaddhcpcd-1c0964901e874de48cdf8b7b4efa82143a4875d3.tar.xz
privsep: Discard the freopen result.
Diffstat (limited to 'src/privsep.c')
-rw-r--r--src/privsep.c4
1 files changed, 2 insertions, 2 deletions
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)