diff options
Diffstat (limited to 'usr/src/lib/libc/port/stdio/getpass.c')
-rw-r--r-- | usr/src/lib/libc/port/stdio/getpass.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/src/lib/libc/port/stdio/getpass.c b/usr/src/lib/libc/port/stdio/getpass.c index c94a57fdd5..f59d9134c6 100644 --- a/usr/src/lib/libc/port/stdio/getpass.c +++ b/usr/src/lib/libc/port/stdio/getpass.c @@ -20,13 +20,15 @@ */ /* - * Copyright 2009 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ /* Copyright (c) 1988 AT&T */ /* All Rights Reserved */ +#pragma ident "%Z%%M% %I% %E% SMI" + #pragma weak _getpass = getpass #pragma weak _getpassphrase = getpassphrase @@ -64,8 +66,6 @@ getpassphrase(const char *prompt) return ((char *)__getpass(prompt, MAXPASSWD)); } - static void catch(int); - static char * __getpass(const char *prompt, int size) { @@ -76,6 +76,7 @@ __getpass(const char *prompt, int size) FILE *fi; char *pbuf = tsdalloc(_T_GETPASS, MAXPASSWD + 1, NULL); struct sigaction act, osigint, osigtstp; + static void catch(int); if (pbuf == NULL || (fi = fopen("/dev/tty", "r+F")) == NULL) |