Pack the csync_file_stat structure.

This commit is contained in:
Andreas Schneider 2011-09-07 23:04:21 +02:00
parent d0888ffba8
commit 1c52b90fa4

View file

@ -155,19 +155,19 @@ enum csync_instructions_e {
}; };
typedef struct csync_file_stat_s { typedef struct csync_file_stat_s {
ino_t inode; uint64_t phash; /* u64 */
uid_t uid; time_t modtime; /* u64 */
gid_t gid; off_t size; /* u64 */
mode_t mode; size_t pathlen; /* u64 */
off_t size; ino_t inode; /* u64 */
int nlink; uid_t uid; /* u32 */
time_t modtime; gid_t gid; /* u32 */
int type; mode_t mode; /* u32 */
enum csync_instructions_e instruction; int nlink; /* u32 */
uint64_t phash; int type; /* u32 */
size_t pathlen; enum csync_instructions_e instruction; /* u32 */
char path[1]; char path[1]; /* u8 */
} csync_file_stat_t; } csync_file_stat_t __attribute__ ((packed));
/** /**
* }@ * }@