]> granicus.if.org Git - sudo/commitdiff
Add protos for term_* to sudo.h
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 8 Aug 2009 12:56:02 +0000 (12:56 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 8 Aug 2009 12:56:02 +0000 (12:56 +0000)
sudo.c
sudo.h
tgetpass.c

diff --git a/sudo.c b/sudo.c
index ebe947d77396dce22e7fcb1661129caf08adf15e..a12462a7dd390254651c2e9aab0b6f686e74e42b 100644 (file)
--- a/sudo.c
+++ b/sudo.c
@@ -147,6 +147,7 @@ uid_t timestamp_uid;
 extern int errorlineno;
 extern int parse_error;
 extern char *errorfile;
+extern int script_fds[5];
 #if defined(RLIMIT_CORE) && !defined(SUDO_DEVEL)
 static struct rlimit corelimit;
 #endif /* RLIMIT_CORE && !SUDO_DEVEL */
@@ -165,10 +166,6 @@ static struct sudo_nss_list *snl;
 extern char *optarg;
 extern int optind;
 
-/* XXX - script.c */
-extern int script_fds[5];
-extern void term_restore __P((int));
-
 int
 main(argc, argv, envp)
     int argc;
diff --git a/sudo.h b/sudo.h
index 4557f7f129b74be978d915b96523c59199cf11f0..647854f6cc2f41009231d2ecb84170af70a3cd89 100644 (file)
--- a/sudo.h
+++ b/sudo.h
@@ -326,6 +326,11 @@ void aix_setlimits __P((char *));
 #endif
 int script_execv __P((const char *, char * const *));
 void script_setup __P((void));
+int term_cbreak __P((int));
+int term_copy __P((int, int));
+int term_noecho __P((int));
+int term_raw __P((int));
+int term_restore __P((int));
 YY_DECL;
 
 /* Only provide extern declarations outside of sudo.c. */
index 8ebc8f198d2aedabebfb4bee9d898e9fe16f1888..dca0f2ce21c790e0d548eb5ee62a911e1464a14c 100644 (file)
@@ -66,10 +66,6 @@ static void handler __P((int));
 static char *getln __P((int, char *, size_t, int));
 static char *sudo_askpass __P((const char *));
 
-extern int term_restore __P((int));
-extern int term_noecho __P((int));
-extern int term_cbreak __P((int));
-
 /*
  * Like getpass(3) but with timeout and echo flags.
  */