csync_file_stat_s: Save a bit of memory
authorOlivier Goffart <ogoffart@woboq.com>
Fri, 16 Oct 2015 07:55:14 +0000 (09:55 +0200)
committerOlivier Goffart <ogoffart@woboq.com>
Fri, 16 Oct 2015 07:56:26 +0000 (09:56 +0200)
csync/src/csync_private.h

index 257d0377aefd919e46c3b06d2c0d92487e378587..5f180b41cdadd4210f355b47041d0e5e7ad62508 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;         /* u32 */
-  int child_modified;/*bool*/
-  int should_update_metadata; /*bool: specify that the etag, or the remote perm or fileid has
+  char type                   : 4;
+  char child_modified         : 1;
+  char 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; /*bool: specify that a directory, or child directory contains ignored files */
+  char has_ignored_files      : 1; /* specify that a directory, or child directory contains ignored files */
 
   char *destpath;   /* for renames */
   const char *etag;