Mercurial > hg > dhcpcd
changeset 5187:b1579900ff46 draft
dhcpcd: Discard the freopen result.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Fri, 01 May 2020 11:19:49 +0100 |
| parents | b8cb8b0cbf8f |
| children | d8a7afd72391 |
| files | src/dhcpcd.c |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dhcpcd.c Fri May 01 11:18:05 2020 +0100 +++ b/src/dhcpcd.c Fri May 01 11:19:49 2020 +0100 @@ -357,8 +357,8 @@ 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 }
