mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-25 13:55:47 +03:00
Fix the formating not be be longer than 80 chars.
This commit is contained in:
parent
959911fa32
commit
e25422ba3f
1 changed files with 8 additions and 3 deletions
|
@ -132,11 +132,14 @@ static int _csync_push_file(CSYNC *ctx, csync_file_stat_t *st) {
|
|||
|
||||
/* Create the destination file */
|
||||
ctx->replica = drep;
|
||||
while ((dfp = csync_vio_open(ctx, turi, O_CREAT|O_EXCL|O_WRONLY|O_NOCTTY, C_FILE_MODE)) == NULL) {
|
||||
while ((dfp = csync_vio_open(ctx, turi, O_CREAT|O_EXCL|O_WRONLY|O_NOCTTY,
|
||||
C_FILE_MODE)) == NULL) {
|
||||
switch (errno) {
|
||||
case EEXIST:
|
||||
if (count++ > 10) {
|
||||
CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR, "file: %s, command: open(O_CREAT), error: max count exceeded", duri);
|
||||
CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR,
|
||||
"file: %s, command: open(O_CREAT), error: max count exceeded",
|
||||
duri);
|
||||
rc = 1;
|
||||
goto out;
|
||||
}
|
||||
|
@ -275,7 +278,9 @@ static int _csync_push_file(CSYNC *ctx, csync_file_stat_t *st) {
|
|||
}
|
||||
|
||||
if (st->size != tstat->size) {
|
||||
CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR, "file: %s, error: incorrect filesize (size: %jd should be %jd)", turi, tstat->size, st->size);
|
||||
CSYNC_LOG(CSYNC_LOG_PRIORITY_ERROR,
|
||||
"file: %s, error: incorrect filesize (size: %jd should be %jd)",
|
||||
turi, tstat->size, st->size);
|
||||
rc = 1;
|
||||
goto out;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue