qubes-rpc/filecopy: use explicit struct alignment
This is much more readable, than guessing exact struct packing done by gcc on x86_64.
This commit is contained in:
parent
138d7899d9
commit
5131810265
@ -29,6 +29,8 @@
|
||||
|
||||
#define LEGAL_EOF 31415926
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
struct file_header {
|
||||
unsigned int namelen;
|
||||
unsigned int mode;
|
||||
@ -40,9 +42,10 @@ struct file_header {
|
||||
};
|
||||
|
||||
struct result_header {
|
||||
unsigned int error_code;
|
||||
unsigned long crc32;
|
||||
};
|
||||
uint32_t error_code;
|
||||
uint32_t _pad;
|
||||
uint64_t crc32;
|
||||
} __attribute__((packed));
|
||||
|
||||
enum {
|
||||
COPY_FILE_OK,
|
||||
|
Loading…
Reference in New Issue
Block a user