diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-09-21 14:28:40 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-09-22 15:14:12 +0200 |
commit | 3d64031fa7a80ac4ae3fd09a5939196268b92f81 (patch) | |
tree | cf6006f0a3ed771c382e53016978241be02506d0 /src/tool_getpass.c | |
parent | 5a654a0a6990211ee63c55d6a5e0333ad087f133 (diff) | |
download | curl-3d64031fa7a80ac4ae3fd09a5939196268b92f81.tar.gz |
symbian: drop support
The OS is deprecated. I see no traces of anyone having actually built
curl for Symbian after 2012.
The public headers are unmodified.
Closes #5989
Diffstat (limited to 'src/tool_getpass.c')
-rw-r--r-- | src/tool_getpass.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/tool_getpass.c b/src/tool_getpass.c index d3bd4e688..35e7c73b3 100644 --- a/src/tool_getpass.c +++ b/src/tool_getpass.c @@ -100,11 +100,7 @@ char *getpass_r(const char *prompt, char *buffer, size_t buflen) #define DONE #endif /* __VMS */ -#ifdef __SYMBIAN32__ -# define getch() getchar() -#endif - -#if defined(WIN32) || defined(__SYMBIAN32__) +#if defined(WIN32) char *getpass_r(const char *prompt, char *buffer, size_t buflen) { @@ -123,10 +119,8 @@ char *getpass_r(const char *prompt, char *buffer, size_t buflen) previous one as well */ i = i - (i >= 1 ? 2 : 1); } -#ifndef __SYMBIAN32__ /* since echo is disabled, print a newline */ fputs("\n", stderr); -#endif /* if user didn't hit ENTER, terminate buffer */ if(i == buflen) buffer[buflen-1] = '\0'; @@ -134,7 +128,7 @@ char *getpass_r(const char *prompt, char *buffer, size_t buflen) return buffer; /* we always return success */ } #define DONE -#endif /* WIN32 || __SYMBIAN32__ */ +#endif /* WIN32 */ #ifdef NETWARE /* NetWare implementation */ |