mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-04 12:52:15 +00:00
Add attribute packed to struct gpt_hdr to avoid unwanted padding at
the end of the struct to make it an integral number of "longs" on 64-bit architectures. The size of the struct must be 92, not 96.
This commit is contained in:
parent
0367ff7599
commit
cd84983468
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=97437
@ -46,7 +46,7 @@ struct gpt_hdr {
|
||||
uint32_t hdr_entries;
|
||||
uint32_t hdr_entsz;
|
||||
uint32_t hdr_crc_table;
|
||||
};
|
||||
} __attribute__((packed));
|
||||
|
||||
struct gpt_ent {
|
||||
struct uuid ent_type;
|
||||
|
Loading…
Reference in New Issue
Block a user