csync: fix compilation error with -pedentic
authorOlivier Goffart <ogoffart@woboq.com>
Fri, 16 Oct 2015 09:45:36 +0000 (11:45 +0200)
committerOlivier Goffart <ogoffart@woboq.com>
Fri, 16 Oct 2015 09:45:36 +0000 (11:45 +0200)
csync/src/csync_private.h

index 5f180b41cdadd4210f355b47041d0e5e7ad62508..1cd92400ded8f627bee937f8b8ab68e7b16bc38b 100644 (file)
@@ -185,11 +185,11 @@ struct csync_file_stat_s {
   size_t pathlen;   /* u64 */
   uint64_t inode;   /* u64 */
   mode_t mode;      /* u32 */
-  char type                   : 4;
-  char child_modified         : 1;
-  char should_update_metadata : 1; /*specify that the etag, or the remote perm or fileid has
+  int type                   : 4;
+  int child_modified         : 1;
+  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 */
-  char has_ignored_files      : 1; /* specify that a directory, or child directory contains ignored files */
+  int has_ignored_files      : 1; /* specify that a directory, or child directory contains ignored files */
 
   char *destpath;   /* for renames */
   const char *etag;