diff options
author | phk <phk@FreeBSD.org> | 2002-10-28 23:31:33 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-10-28 23:31:33 +0000 |
commit | 46972a1cd987b2dea0a141dde525fdc000ab59d2 (patch) | |
tree | d87237b71cff20d00c8c0c7d3a98ee83483e7091 /sys/sys | |
parent | 9970a15befff528c965af848e51a463e95266607 (diff) | |
download | FreeBSD-src-46972a1cd987b2dea0a141dde525fdc000ab59d2.zip FreeBSD-src-46972a1cd987b2dea0a141dde525fdc000ab59d2.tar.gz |
Put a CTASSERT on the size of struct sun_disklabel.
Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/sys')
-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 cdd19cc..43a18a1 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); |