summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-05-01 11:19:49 +0100
committerRoy Marples <roy@marples.name>2020-05-01 11:19:49 +0100
commitedec47c041ee8d8696f2f9fcf2962b017b291f06 (patch)
treed8de5fa77134b46af63aebb010697a36193217e3 /src
parent1c0964901e874de48cdf8b7b4efa82143a4875d3 (diff)
downloaddhcpcd-edec47c041ee8d8696f2f9fcf2962b017b291f06.tar.xz
dhcpcd: Discard the freopen result.
Diffstat (limited to 'src')
-rw-r--r--src/dhcpcd.c4
1 files changed, 2 insertions, 2 deletions
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
}