From d2624ffa965fd4ee54ddd21db581928b6b45e151 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 7 May 2015 09:42:48 -0600 Subject: [PATCH] Make tty_present static to tgetpass.c --- src/sudo.h | 1 - src/tgetpass.c | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sudo.h b/src/sudo.h index d66294306..e4c048440 100644 --- a/src/sudo.h +++ b/src/sudo.h @@ -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]); diff --git a/src/tgetpass.c b/src/tgetpass.c index 373e1a527..a3a3f2fec 100644 --- a/src/tgetpass.c +++ b/src/tgetpass.c @@ -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; -- 2.40.0