]> granicus.if.org Git - sudo/commitdiff
Make this compile after last change.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 5 Apr 2012 16:59:26 +0000 (12:59 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 5 Apr 2012 16:59:26 +0000 (12:59 -0400)
src/exec_pty.c

index e301d97f53925dc4e67ed431b933c67d6100625b..21d975ce2020c06be6329072f7c558e1fa53656f 100644 (file)
@@ -104,6 +104,7 @@ static void sigwinch(int s);
 static void sync_ttysize(int src, int dst);
 static void deliver_signal(pid_t pid, int signo);
 static int safe_close(int fd);
+static void check_foreground(void);
 
 /*
  * Cleanup hook for error()/errorx()
@@ -115,7 +116,7 @@ cleanup(int gotsignal)
 
     if (!tq_empty(&io_plugins) && io_fds[SFD_USERTTY] != -1) {
        check_foreground();
-       if (foreground) {
+       if (foreground)
            term_restore(io_fds[SFD_USERTTY], 0);
     }
 #ifdef HAVE_SELINUX