Silence compiler warnings.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 29 Aug 2012 18:40:25 +0000 (14:40 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 29 Aug 2012 18:40:25 +0000 (14:40 -0400)
src/exec.c
src/ttyname.c

index bd688c3192895820a9bc7a5febe7dfbb2cacee29..1c6427afb1ceaeeede100e89f590de21572b7f98 100644 (file)
@@ -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) {
index aa06acf729af7a59ed9229b87ce820cf81b31829..9ef1b78f4279e9246430246543a63b9372319958 100644 (file)
@@ -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;