* grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-07-14 16:29:33 +02:00
parent 68714c4392
commit 795b3dc094
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,7 @@
2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.

View file

@ -99,13 +99,13 @@ typedef grub_size_t size_t;
typedef struct _U16_S {
U16 v;
} U16_S;
} __attribute__ ((packed)) U16_S;
typedef struct _U32_S {
U32 v;
} U32_S;
} __attribute__ ((packed)) U32_S;
typedef struct _U64_S {
U64 v;
} U64_S;
} __attribute__ ((packed)) U64_S;
#define A64(x) (((U64_S *)(x))->v)
#define A32(x) (((U32_S *)(x))->v)