diff options
| author | Roy Marples <roy@marples.name> | 2020-05-01 11:19:49 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-05-01 11:19:49 +0100 |
| commit | edec47c041ee8d8696f2f9fcf2962b017b291f06 (patch) | |
| tree | d8de5fa77134b46af63aebb010697a36193217e3 /src/dhcpcd.c | |
| parent | 1c0964901e874de48cdf8b7b4efa82143a4875d3 (diff) | |
| download | dhcpcd-edec47c041ee8d8696f2f9fcf2962b017b291f06.tar.xz | |
dhcpcd: Discard the freopen result.
Diffstat (limited to 'src/dhcpcd.c')
| -rw-r--r-- | src/dhcpcd.c | 4 |
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 } |
