From 4f9b76b6f2acc4030ce9ef164322514c5d0e761b Mon Sep 17 00:00:00 2001 From: Ivan Zhakov Date: Sun, 20 Nov 2022 07:14:38 +0000 Subject: Remove trailing whitespaces in *.c. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905414 13f79535-47bb-0310-9956-ffa450edef68 --- passwd/apr_getpass.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'passwd') diff --git a/passwd/apr_getpass.c b/passwd/apr_getpass.c index 5426b8a36..b4bdb5356 100644 --- a/passwd/apr_getpass.c +++ b/passwd/apr_getpass.c @@ -112,20 +112,20 @@ static char *get_password(const char *prompt) /* WCE lacks console. So the getpass is unsuported * The only way is to use the GUI so the getpass should be implemented * on per-application basis. - */ + */ static char password[128]; int n = 0; int ch; fputs(prompt, stderr); - + while ((ch = _getch()) != '\r') { if (ch == EOF) /* EOF */ { fputs("[EOF]\n", stderr); return NULL; } else if (ch == 0 || ch == 0xE0) { - /* FN Keys (0 or E0) are a sentinal for a FN code */ + /* FN Keys (0 or E0) are a sentinal for a FN code */ ch = (ch << 4) | _getch(); /* Catch {DELETE}, {<--}, Num{DEL} and Num{<--} */ if ((ch == 0xE53 || ch == 0xE4B || ch == 0x053 || ch == 0x04b) && n) { @@ -162,7 +162,7 @@ static char *get_password(const char *prompt) fputc('\a', stderr); } } - + fputc('\n', stderr); password[n] = '\0'; return password; @@ -194,7 +194,7 @@ static char *get_password(const char *prompt) n = 0; } } - + password[n] = '\0'; printf("\n"); if (n > (MAX_STRING_LEN - 1)) { -- cgit v1.2.1