Make tty_present static to tgetpass.c
This commit is contained in:
@@ -184,7 +184,6 @@ void cleanup(int);
|
|||||||
|
|
||||||
/* tgetpass.c */
|
/* tgetpass.c */
|
||||||
char *tgetpass(const char *, int, int);
|
char *tgetpass(const char *, int, int);
|
||||||
int tty_present(void);
|
|
||||||
|
|
||||||
/* exec.c */
|
/* exec.c */
|
||||||
int pipe_nonblock(int fds[2]);
|
int pipe_nonblock(int fds[2]);
|
||||||
|
@@ -58,6 +58,7 @@
|
|||||||
|
|
||||||
static volatile sig_atomic_t signo[NSIG];
|
static volatile sig_atomic_t signo[NSIG];
|
||||||
|
|
||||||
|
static bool tty_present(void);
|
||||||
static void tgetpass_handler(int);
|
static void tgetpass_handler(int);
|
||||||
static char *getln(int, char *, size_t, int);
|
static char *getln(int, char *, size_t, int);
|
||||||
static char *sudo_askpass(const char *, const char *);
|
static char *sudo_askpass(const char *, const char *);
|
||||||
@@ -329,7 +330,7 @@ tgetpass_handler(int s)
|
|||||||
signo[s] = 1;
|
signo[s] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static bool
|
||||||
tty_present(void)
|
tty_present(void)
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
|
Reference in New Issue
Block a user