From 46972a1cd987b2dea0a141dde525fdc000ab59d2 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 28 Oct 2002 23:31:33 +0000 Subject: [PATCH] Put a CTASSERT on the size of struct sun_disklabel. Sponsored by: DARPA & NAI Labs. --- sys/sys/sun_disklabel.h | 2 ++ 1 file changed, 2 insertions(+) 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);