Remove unnessesary newlines.

This commit is contained in:
Andreas Schneider 2008-05-13 16:00:57 +02:00
parent 2c8f1fb667
commit 349d924126
2 changed files with 2 additions and 5 deletions

View file

@ -37,7 +37,6 @@ int csync_text_prompt(const char *prompt, char *buf, size_t len) {
/* read the password */
while (!ok) {
fprintf(stdout,"\n");
fprintf(stdout, "%s", prompt);
fflush(stdout);
while (! fgets(buf, len, stdin));
@ -46,7 +45,6 @@ int csync_text_prompt(const char *prompt, char *buf, size_t len) {
*ptr = '\0';
}
ok = 1;
fprintf(stdout,"\n");
}
/* force termination */
@ -95,7 +93,6 @@ int csync_password_prompt(const char *prompt, char *buf, size_t len, int verify)
/* read the password */
while (!ok) {
fprintf(stdout,"\n");
fprintf(stdout, "%s", prompt);
fflush(stdout);
while (! fgets(buf, len, stdin));
@ -123,7 +120,6 @@ int csync_password_prompt(const char *prompt, char *buf, size_t len, int verify)
}
}
ok = 1;
fprintf(stdout,"\n");
}
/* reset terminal */

View file

@ -154,8 +154,9 @@ int main(int argc, char **argv) {
exit(1);
}
csync_init(csync);
csync_set_module_auth_callback(csync, csync_auth_fn);
fprintf(stdout,"\n");
csync_init(csync);
printf("Version: %s\n", csync_version());
if (arguments.update) {