From ae21fb299d001c21f7c91840e9e66210e59bb5bc Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 29 Aug 2012 14:40:25 -0400 Subject: [PATCH] Silence compiler warnings. --- src/exec.c | 4 ++-- src/ttyname.c | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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;