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

index 839209f9811790399223aa9fc33c2dd65aeba7c9..71ae45ac9b49803f08d09fec8eb876e0396d0241 100644 (file)
@@ -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
 }