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:
marcel 2002-05-29 02:58:41 +00:00
parent 8b1c546166
commit d3f01d6a67

View File

@ -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;