Cast the return value of fcntl() to void when setting FD_CLOEXEC.

Coverity CID 104063, 104064, 104069, 104070, 104071, 104072, 104073, 104074
This commit is contained in:
Todd C. Miller
2016-05-05 16:16:24 -06:00
parent 9471ec45a1
commit 6473d55aa7
6 changed files with 12 additions and 12 deletions

View File

@@ -131,7 +131,7 @@ fork_cmnd(struct command_details *details, int sv[2])
close(sv[0]);
close(signal_pipe[0]);
close(signal_pipe[1]);
fcntl(sv[1], F_SETFD, FD_CLOEXEC);
(void)fcntl(sv[1], F_SETFD, FD_CLOEXEC);
exec_cmnd(details, &cstat, sv[1]);
send(sv[1], &cstat, sizeof(cstat), 0);
sudo_debug_exit_int(__func__, __FILE__, __LINE__, sudo_debug_subsys, 1);