Silence compiler warnings.
This commit is contained in:
@@ -177,7 +177,7 @@ static int fork_cmnd(struct command_details *details, int sv[2])
|
|||||||
_exit(1);
|
_exit(1);
|
||||||
}
|
}
|
||||||
sudo_debug_printf(SUDO_DEBUG_INFO, "executed %s, pid %d", details->command,
|
sudo_debug_printf(SUDO_DEBUG_INFO, "executed %s, pid %d", details->command,
|
||||||
cmnd_pid);
|
(int)cmnd_pid);
|
||||||
debug_return_int(cmnd_pid);
|
debug_return_int(cmnd_pid);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -442,7 +442,7 @@ sudo_execute(struct command_details *details, struct command_status *cstat)
|
|||||||
*/
|
*/
|
||||||
cmnd_pid = cstat->val;
|
cmnd_pid = cstat->val;
|
||||||
sudo_debug_printf(SUDO_DEBUG_INFO, "executed %s, pid %d",
|
sudo_debug_printf(SUDO_DEBUG_INFO, "executed %s, pid %d",
|
||||||
details->command, cmnd_pid);
|
details->command, (int)cmnd_pid);
|
||||||
if (log_io)
|
if (log_io)
|
||||||
sigprocmask(SIG_SETMASK, &omask, NULL);
|
sigprocmask(SIG_SETMASK, &omask, NULL);
|
||||||
} else if (cstat->type == CMD_WSTATUS) {
|
} else if (cstat->type == CMD_WSTATUS) {
|
||||||
|
@@ -398,7 +398,6 @@ char *
|
|||||||
get_process_ttyname(void)
|
get_process_ttyname(void)
|
||||||
{
|
{
|
||||||
char path[PATH_MAX], *tty = NULL;
|
char path[PATH_MAX], *tty = NULL;
|
||||||
struct stat sb;
|
|
||||||
struct psinfo psinfo;
|
struct psinfo psinfo;
|
||||||
ssize_t nread;
|
ssize_t nread;
|
||||||
int i, fd;
|
int i, fd;
|
||||||
|
Reference in New Issue
Block a user