Correctly account for MAXPARTITIONS in the CTASSERT() which protects the
size of the disklabel structure. Hit by: schweikh
This commit is contained in:
parent
975819b705
commit
28dcd19b25
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user