Make tty_present static to tgetpass.c

This commit is contained in:
Todd C. Miller
2015-05-07 09:42:48 -06:00
parent 5647736ef5
commit d2624ffa96
2 changed files with 2 additions and 2 deletions

View 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]);

View 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;