aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/gpt.h
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2002-05-29 02:58:41 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2002-05-29 02:58:41 +0000
commitcd849834682d2c27cb9d85bc767e63c5198cbcc2 (patch)
tree58673155956bd046f478b312b8716a2d6ad75a82 /sys/sys/gpt.h
parent0367ff759998b65384d84e7cc6f322d8028b8c21 (diff)
downloadsrc-cd849834682d2c27cb9d85bc767e63c5198cbcc2.tar.gz
src-cd849834682d2c27cb9d85bc767e63c5198cbcc2.zip
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.
Notes
Notes: svn path=/head/; revision=97437
Diffstat (limited to 'sys/sys/gpt.h')
-rw-r--r--sys/sys/gpt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/gpt.h b/sys/sys/gpt.h
index 813a4f166691..f5b17e19eb1f 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;