csync_update: Use the csync defines rather than plain numbers.
authorKlaas Freitag <freitag@owncloud.com>
Wed, 27 Jan 2016 13:10:52 +0000 (14:10 +0100)
committerKlaas Freitag <freitag@owncloud.com>
Wed, 27 Jan 2016 13:10:52 +0000 (14:10 +0100)
csync/src/csync_update.c

index bd0a4c73b1c34d3f30d040f7bb8c68e87ebbd524..1a30c81aa7ae40107a474b201f635af40047a671 100644 (file)
@@ -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 == ) {
+            } 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;
             }