summaryrefslogtreecommitdiff
path: root/passwd
diff options
context:
space:
mode:
Diffstat (limited to 'passwd')
-rw-r--r--passwd/apr_getpass.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/passwd/apr_getpass.c b/passwd/apr_getpass.c
index ac45815c3..a9d60e38a 100644
--- a/passwd/apr_getpass.c
+++ b/passwd/apr_getpass.c
@@ -100,13 +100,13 @@ static char *get_password(const char *prompt)
int n=0;
fputs(prompt, stderr);
fflush(stderr);
-
+
if (tcgetattr(STDIN_FILENO, &attr) != 0)
return NULL;
attr.c_lflag &= ~(ECHO);
if (tcsetattr(STDIN_FILENO, TCSAFLUSH, &attr) != 0)
- return NULL;
+ return NULL;
while ((password[n] = getchar()) != '\n') {
if (n < sizeof(password) - 1 && password[n] >= ' ' && password[n] <= '~') {
n++;
@@ -180,7 +180,7 @@ static char *get_password(const char *prompt)
fputs("^Z\n", stderr);
return NULL;
}
- else if (ch == 27) /* ESC */ {
+ else if (ch == 27) /* ESC */ {
fputc('\n', stderr);
fputs(prompt, stderr);
n = 0;
@@ -189,7 +189,7 @@ static char *get_password(const char *prompt)
password[n++] = ch;
fputc('*', stderr);
}
- else {
+ else {
fputc('\a', stderr);
}
}