summaryrefslogtreecommitdiff
path: root/passwd
diff options
context:
space:
mode:
authorIvan Zhakov <ivan@apache.org>2022-11-20 07:14:38 +0000
committerIvan Zhakov <ivan@apache.org>2022-11-20 07:14:38 +0000
commit4f9b76b6f2acc4030ce9ef164322514c5d0e761b (patch)
tree9b993b3753affcbf164056826f9d568d8760b3a1 /passwd
parent961caf5f46055483fa72ab02f5e8baa16c209e2f (diff)
downloadapr-4f9b76b6f2acc4030ce9ef164322514c5d0e761b.tar.gz
Remove trailing whitespaces in *.c.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905414 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'passwd')
-rw-r--r--passwd/apr_getpass.c10
1 files changed, 5 insertions, 5 deletions
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)) {