mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 15:06:08 +03:00
Remove unnessesary newlines.
This commit is contained in:
parent
2c8f1fb667
commit
349d924126
2 changed files with 2 additions and 5 deletions
|
@ -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 */
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue