diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-10-28 23:31:33 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-10-28 23:31:33 +0000 |
commit | 89331f114e4a07f374aecc3281f8a2a669d4a0ea (patch) | |
tree | d87237b71cff20d00c8c0c7d3a98ee83483e7091 /sys/sys/sun_disklabel.h | |
parent | 311e43248d01b20fb2853678fd86a05122d2f28f (diff) | |
download | src-89331f114e4a07f374aecc3281f8a2a669d4a0ea.tar.gz src-89331f114e4a07f374aecc3281f8a2a669d4a0ea.zip |
Put a CTASSERT on the size of struct sun_disklabel.
Sponsored by: DARPA & NAI Labs.
Notes
Notes:
svn path=/head/; revision=106105
Diffstat (limited to 'sys/sys/sun_disklabel.h')
-rw-r--r-- | sys/sys/sun_disklabel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/sun_disklabel.h b/sys/sys/sun_disklabel.h index cdd19cc7d016..43a18a19226d 100644 --- a/sys/sys/sun_disklabel.h +++ b/sys/sys/sun_disklabel.h @@ -99,3 +99,5 @@ struct sun_disklabel { /* total size = 512 bytes */ u_int16_t sl_magic; /* == SUN_DKMAGIC */ u_int16_t sl_cksum; /* xor checksum of all shorts */ }; + +CTASSERT(sizeof (struct sun_disklabel) == 512); |