]> granicus.if.org Git - sudo/commitdiff
Make tty_present static to tgetpass.c
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 7 May 2015 15:42:48 +0000 (09:42 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 7 May 2015 15:42:48 +0000 (09:42 -0600)
src/sudo.h
src/tgetpass.c

index d66294306bba3dea6116ad621d03fb9eaf14e3fa..e4c0484403a0aff5f6b9368416ee30648ec3f366 100644 (file)
@@ -184,7 +184,6 @@ void cleanup(int);
 
 /* tgetpass.c */
 char *tgetpass(const char *, int, int);
-int tty_present(void);
 
 /* exec.c */
 int pipe_nonblock(int fds[2]);
index 373e1a527acbd4cde7e9cadb3e1ca53a2c5f207b..a3a3f2fec1ecbbfea6d8e17a55d654b20325cd88 100644 (file)
@@ -58,6 +58,7 @@
 
 static volatile sig_atomic_t signo[NSIG];
 
+static bool tty_present(void);
 static void tgetpass_handler(int);
 static char *getln(int, char *, size_t, int);
 static char *sudo_askpass(const char *, const char *);
@@ -329,7 +330,7 @@ tgetpass_handler(int s)
        signo[s] = 1;
 }
 
-int
+static bool
 tty_present(void)
 {
     int fd;