csync: Fix warning the bit field need to be unsigned
authorOlivier Goffart <ogoffart@woboq.com>
Mon, 19 Oct 2015 08:12:45 +0000 (10:12 +0200)
committerOlivier Goffart <ogoffart@woboq.com>
Mon, 19 Oct 2015 08:13:11 +0000 (10:13 +0200)
csync/src/csync_private.h

index 1cd92400ded8f627bee937f8b8ab68e7b16bc38b..f201a7017660812f407e720295aae6a858b1e396 100644 (file)
@@ -185,11 +185,11 @@ struct csync_file_stat_s {
   size_t pathlen;   /* u64 */
   uint64_t inode;   /* u64 */
   mode_t mode;      /* u32 */
-  int type                   : 4;
-  int child_modified         : 1;
-  int should_update_metadata : 1; /*specify that the etag, or the remote perm or fileid has
+  unsigned int type                   : 4;
+  unsigned int child_modified         : 1;
+  unsigned int should_update_metadata : 1; /*specify that the etag, or the remote perm or fileid has
                                 changed and need to be updated on the db even for INSTRUCTION_NONE */
-  int has_ignored_files      : 1; /* specify that a directory, or child directory contains ignored files */
+  unsigned int has_ignored_files      : 1; /* specify that a directory, or child directory contains ignored files */
 
   char *destpath;   /* for renames */
   const char *etag;