From 1c52b90fa4621106f87e6507f1359d6fe065a969 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 7 Sep 2011 23:04:21 +0200 Subject: [PATCH] Pack the csync_file_stat structure. --- src/csync_private.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/csync_private.h b/src/csync_private.h index 3fd2a6b7b..9ca1e03da 100644 --- a/src/csync_private.h +++ b/src/csync_private.h @@ -155,19 +155,19 @@ enum csync_instructions_e { }; typedef struct csync_file_stat_s { - ino_t inode; - uid_t uid; - gid_t gid; - mode_t mode; - off_t size; - int nlink; - time_t modtime; - int type; - enum csync_instructions_e instruction; - uint64_t phash; - size_t pathlen; - char path[1]; -} csync_file_stat_t; + uint64_t phash; /* u64 */ + time_t modtime; /* u64 */ + off_t size; /* u64 */ + size_t pathlen; /* u64 */ + ino_t inode; /* u64 */ + uid_t uid; /* u32 */ + gid_t gid; /* u32 */ + mode_t mode; /* u32 */ + int nlink; /* u32 */ + int type; /* u32 */ + enum csync_instructions_e instruction; /* u32 */ + char path[1]; /* u8 */ +} csync_file_stat_t __attribute__ ((packed)); /** * }@