From 56548f9a13b9438ca2be3760f486f5441f679057 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 6 Nov 2000 23:18:50 +0000 Subject: getpass_r() is the new getpass name for thread-safe getpass! --- lib/getpass.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/getpass.c') diff --git a/lib/getpass.c b/lib/getpass.c index d18f6d79f..245782027 100644 --- a/lib/getpass.c +++ b/lib/getpass.c @@ -5,7 +5,7 @@ * * 1) This header remain in tact. * 2) The prototype for getpass is not changed from: - * char *getpass(const char *prompt) + * int getpass_r(const char *prompt, char *buffer, int buflen) * 3) This source code is not used outside of this(getpass.c) file. * 3) Any changes to this(getpass.c) source code are made publicly available. * @@ -68,7 +68,7 @@ # define perror(x) fprintf(stderr, "Error in: %s\n", x) #endif -int my_getpass(void *client, const char *prompt, char *buffer, int buflen) +int getpass_r(const char *prompt, char *buffer, int buflen) { FILE *infp; FILE *outfp; @@ -181,7 +181,7 @@ int my_getpass(void *client, const char *prompt, char *buffer, int buflen) #else /* WIN32 */ #include #include -int my_getpass(void *client, const char *prompt, char *buffer, int buflen) +int getpass_r(const char *prompt, char *buffer, int buflen) { int i; printf("%s", prompt); -- cgit v1.2.3