Let's be paranoid: force the packing on important shared structures.

This commit is contained in:
Godzil 2019-07-24 15:41:21 +01:00
parent 0ce298ca33
commit 75a05048a4

View File

@ -81,6 +81,8 @@
/* other constants */
#define FUSD_MSG_MAGIC 0x7a6b93cd
#pragma pack(1)
/* user->kernel: register a device */
typedef struct {
char name[FUSD_MAX_NAME_LENGTH+1];
@ -148,4 +150,6 @@ typedef struct {
int num_open;
} fusd_status_t;
#pragma pack()
#endif /* __FUSD_MSG_H__ */