diff options
author | marcel <marcel@FreeBSD.org> | 2002-05-29 02:58:41 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2002-05-29 02:58:41 +0000 |
commit | d3f01d6a67ee1b374130fc186455d6e96298c996 (patch) | |
tree | 58673155956bd046f478b312b8716a2d6ad75a82 /sys | |
parent | 8b1c546166f0b0700338a70a81690ebb69b1e080 (diff) | |
download | FreeBSD-src-d3f01d6a67ee1b374130fc186455d6e96298c996.zip FreeBSD-src-d3f01d6a67ee1b374130fc186455d6e96298c996.tar.gz |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/gpt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/gpt.h b/sys/sys/gpt.h index 813a4f1..f5b17e1 100644 --- a/sys/sys/gpt.h +++ b/sys/sys/gpt.h @@ -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; |