From: Klaas Freitag Date: Wed, 27 Jan 2016 13:10:52 +0000 (+0100) Subject: csync_update: Use the csync defines rather than plain numbers. X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1254^2~32^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7ddfa79950d76316b4914daf7636b098f6c10a8d;p=nextcloud-desktop.git csync_update: Use the csync defines rather than plain numbers. --- diff --git a/csync/src/csync_update.c b/csync/src/csync_update.c index bd0a4c73b..1a30c81aa 100644 --- a/csync/src/csync_update.c +++ b/csync/src/csync_update.c @@ -353,10 +353,12 @@ static int _csync_detect_update(CSYNC *ctx, const char *file, } /* translate the file type between the two stat types csync has. */ - if( tmp && tmp->type == 0 ) { + if( tmp && tmp->type == CSYNC_FTW_TYPE_FILE ) { tmp_vio_type = CSYNC_VIO_FILE_TYPE_REGULAR; - } else if( tmp && tmp->type == 2 ) { + } else if( tmp && tmp->type == CSYNC_FTW_TYPE_DIR) { tmp_vio_type = CSYNC_VIO_FILE_TYPE_DIRECTORY; + } else if( tmp && tmp->type == CSYNC_FTW_TYPE_SLINK ) { + tmp_vio_type = CSYNC_VIO_FILE_TYPE_SYMBOLIC_LINK; } else { tmp_vio_type = CSYNC_VIO_FILE_TYPE_UNKNOWN; }