Put a CTASSERT on the size of struct sun_disklabel.

Sponsored by:	DARPA & NAI Labs.
This commit is contained in:
phk 2002-10-28 23:31:33 +00:00
parent 9970a15bef
commit 46972a1cd9

View File

@ -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);