mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 05:25:50 +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 */
|
/* read the password */
|
||||||
while (!ok) {
|
while (!ok) {
|
||||||
fprintf(stdout,"\n");
|
|
||||||
fprintf(stdout, "%s", prompt);
|
fprintf(stdout, "%s", prompt);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
while (! fgets(buf, len, stdin));
|
while (! fgets(buf, len, stdin));
|
||||||
|
@ -46,7 +45,6 @@ int csync_text_prompt(const char *prompt, char *buf, size_t len) {
|
||||||
*ptr = '\0';
|
*ptr = '\0';
|
||||||
}
|
}
|
||||||
ok = 1;
|
ok = 1;
|
||||||
fprintf(stdout,"\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* force termination */
|
/* force termination */
|
||||||
|
@ -95,7 +93,6 @@ int csync_password_prompt(const char *prompt, char *buf, size_t len, int verify)
|
||||||
|
|
||||||
/* read the password */
|
/* read the password */
|
||||||
while (!ok) {
|
while (!ok) {
|
||||||
fprintf(stdout,"\n");
|
|
||||||
fprintf(stdout, "%s", prompt);
|
fprintf(stdout, "%s", prompt);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
while (! fgets(buf, len, stdin));
|
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;
|
ok = 1;
|
||||||
fprintf(stdout,"\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* reset terminal */
|
/* reset terminal */
|
||||||
|
|
|
@ -154,8 +154,9 @@ int main(int argc, char **argv) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
csync_init(csync);
|
|
||||||
csync_set_module_auth_callback(csync, csync_auth_fn);
|
csync_set_module_auth_callback(csync, csync_auth_fn);
|
||||||
|
fprintf(stdout,"\n");
|
||||||
|
csync_init(csync);
|
||||||
printf("Version: %s\n", csync_version());
|
printf("Version: %s\n", csync_version());
|
||||||
|
|
||||||
if (arguments.update) {
|
if (arguments.update) {
|
||||||
|
|
Loading…
Reference in a new issue