diff options
author | Nathan Keynes <Nathan.Keynes@Sun.COM> | 2009-04-30 16:35:44 -0700 |
---|---|---|
committer | Nathan Keynes <Nathan.Keynes@Sun.COM> | 2009-04-30 16:35:44 -0700 |
commit | 8883f1c270cc8e33c18dd088e744840092b47bbb (patch) | |
tree | 8158374df4c6ad96b23aae3de2c235943f3dcc7a /usr/src/lib/libc/port/stdio/getpass.c | |
parent | 2d2627043e43d2539979aab3fb55dafd776970e6 (diff) | |
download | illumos-joyent-8883f1c270cc8e33c18dd088e744840092b47bbb.tar.gz |
6795209 Enable compilation of ON-consolidation with GCC 4.2
6392640 rpcgen -h -T output does not compile with gcc 4.x
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, 3 insertions, 4 deletions
diff --git a/usr/src/lib/libc/port/stdio/getpass.c b/usr/src/lib/libc/port/stdio/getpass.c index f59d9134c6..c94a57fdd5 100644 --- a/usr/src/lib/libc/port/stdio/getpass.c +++ b/usr/src/lib/libc/port/stdio/getpass.c @@ -20,15 +20,13 @@ */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 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 @@ -66,6 +64,8 @@ getpassphrase(const char *prompt) return ((char *)__getpass(prompt, MAXPASSWD)); } + static void catch(int); + static char * __getpass(const char *prompt, int size) { @@ -76,7 +76,6 @@ __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) |