qubes-rpc/filecopy: use explicit struct alignment

This is much more readable, than guessing exact struct packing done by
gcc on x86_64.
release2
Marek Marczykowski-Górecki 11 years ago
parent 138d7899d9
commit 5131810265

@ -29,6 +29,8 @@
#define LEGAL_EOF 31415926 #define LEGAL_EOF 31415926
#include <stdint.h>
struct file_header { struct file_header {
unsigned int namelen; unsigned int namelen;
unsigned int mode; unsigned int mode;
@ -40,9 +42,10 @@ struct file_header {
}; };
struct result_header { struct result_header {
unsigned int error_code; uint32_t error_code;
unsigned long crc32; uint32_t _pad;
}; uint64_t crc32;
} __attribute__((packed));
enum { enum {
COPY_FILE_OK, COPY_FILE_OK,

Loading…
Cancel
Save