diff --git a/src/exec.c b/src/exec.c index bd688c319..1c6427afb 100644 --- a/src/exec.c +++ b/src/exec.c @@ -177,7 +177,7 @@ static int fork_cmnd(struct command_details *details, int sv[2]) _exit(1); } sudo_debug_printf(SUDO_DEBUG_INFO, "executed %s, pid %d", details->command, - cmnd_pid); + (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; sudo_debug_printf(SUDO_DEBUG_INFO, "executed %s, pid %d", - details->command, cmnd_pid); + details->command, (int)cmnd_pid); if (log_io) sigprocmask(SIG_SETMASK, &omask, NULL); } else if (cstat->type == CMD_WSTATUS) { diff --git a/src/ttyname.c b/src/ttyname.c index aa06acf72..9ef1b78f4 100644 --- a/src/ttyname.c +++ b/src/ttyname.c @@ -398,7 +398,6 @@ char * get_process_ttyname(void) { char path[PATH_MAX], *tty = NULL; - struct stat sb; struct psinfo psinfo; ssize_t nread; int i, fd;