Quiet a few -Wunused-result compiler warnings.

This commit is contained in:
Todd C. Miller
2013-05-01 11:02:09 -04:00
parent 874d84f263
commit f6e8fb8b1c
5 changed files with 9 additions and 7 deletions

View File

@@ -146,7 +146,7 @@ int sudo_debug_init(const char *debugfile, const char *settings)
}
if (sudo_debug_fd == -1)
return 0;
fchown(sudo_debug_fd, (uid_t)-1, 0);
ignore_result(fchown(sudo_debug_fd, (uid_t)-1, 0));
}
(void)fcntl(sudo_debug_fd, F_SETFD, FD_CLOEXEC);
sudo_debug_mode = SUDO_DEBUG_MODE_FILE;