projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add include files to get prototype declarations, and fix bugs found.
[unix-history]
/
usr
/
src
/
lib
/
libc
/
gen
/
getpass.c
diff --git
a/usr/src/lib/libc/gen/getpass.c
b/usr/src/lib/libc/gen/getpass.c
index
ea8aebd
..
0b9b702
100644
(file)
--- a/
usr/src/lib/libc/gen/getpass.c
+++ b/
usr/src/lib/libc/gen/getpass.c
@@
-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;
+ c
onst c
har *prompt;
{
struct termios term;
register int ch;
{
struct termios term;
register int ch;