Add include files to get prototype declarations, and fix bugs found.
[unix-history] / usr / src / lib / libc / gen / getpass.c
index ea8aebd..0b9b702 100644 (file)
@@ -6,17 +6,18 @@
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)getpass.c  5.7 (Berkeley) %G%";
+static char sccsid[] = "@(#)getpass.c  5.8 (Berkeley) %G%";
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/termios.h>
 #include <sys/signal.h>
 #include <stdio.h>
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/termios.h>
 #include <sys/signal.h>
 #include <stdio.h>
+#include <unistd.h>
 #include <pwd.h>
 
 char *
 getpass(prompt)
 #include <pwd.h>
 
 char *
 getpass(prompt)
-       char *prompt;
+       const char *prompt;
 {
        struct termios term;
        register int ch;
 {
        struct termios term;
        register int ch;