Correctly account for MAXPARTITIONS in the CTASSERT() which protects the

size of the disklabel structure.

Hit by:	schweikh
This commit is contained in:
Poul-Henning Kamp 2002-10-13 17:28:14 +00:00
parent 975819b705
commit 28dcd19b25

View File

@ -171,7 +171,7 @@ struct disklabel {
};
#ifdef CTASSERT
CTASSERT(sizeof(struct disklabel) == 276);
CTASSERT(sizeof(struct disklabel) == 148 + MAXPARTITIONS * 16);
#endif
static __inline u_int16_t dkcksum(struct disklabel *lp);