summaryrefslogtreecommitdiffstats
path: root/sys/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-28 23:31:33 +0000
committerphk <phk@FreeBSD.org>2002-10-28 23:31:33 +0000
commit46972a1cd987b2dea0a141dde525fdc000ab59d2 (patch)
treed87237b71cff20d00c8c0c7d3a98ee83483e7091 /sys/sys
parent9970a15befff528c965af848e51a463e95266607 (diff)
downloadFreeBSD-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.h2
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);
OpenPOWER on IntegriCloud