Put a CTASSERT on the size of struct sun_disklabel.
Sponsored by: DARPA & NAI Labs.
This commit is contained in:
parent
9970a15bef
commit
46972a1cd9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user