Let's be paranoid: force the packing on important shared structures.
This commit is contained in:
parent
0ce298ca33
commit
75a05048a4
@ -81,6 +81,8 @@
|
|||||||
/* other constants */
|
/* other constants */
|
||||||
#define FUSD_MSG_MAGIC 0x7a6b93cd
|
#define FUSD_MSG_MAGIC 0x7a6b93cd
|
||||||
|
|
||||||
|
#pragma pack(1)
|
||||||
|
|
||||||
/* user->kernel: register a device */
|
/* user->kernel: register a device */
|
||||||
typedef struct {
|
typedef struct {
|
||||||
char name[FUSD_MAX_NAME_LENGTH+1];
|
char name[FUSD_MAX_NAME_LENGTH+1];
|
||||||
@ -148,4 +150,6 @@ typedef struct {
|
|||||||
int num_open;
|
int num_open;
|
||||||
} fusd_status_t;
|
} fusd_status_t;
|
||||||
|
|
||||||
|
#pragma pack()
|
||||||
|
|
||||||
#endif /* __FUSD_MSG_H__ */
|
#endif /* __FUSD_MSG_H__ */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user