summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-13 17:28:14 +0000
committerphk <phk@FreeBSD.org>2002-10-13 17:28:14 +0000
commitc78ac1158768ea6c926aaf87ccac4684a9bbdbab (patch)
treef13de00d4b044cf75aa83af4bd0e05683f55da87
parente503981b223662e9d3d095ad17e9c76f58520560 (diff)
downloadFreeBSD-src-c78ac1158768ea6c926aaf87ccac4684a9bbdbab.zip
FreeBSD-src-c78ac1158768ea6c926aaf87ccac4684a9bbdbab.tar.gz
Correctly account for MAXPARTITIONS in the CTASSERT() which protects the
size of the disklabel structure. Hit by: schweikh
-rw-r--r--sys/sys/disklabel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/disklabel.h b/sys/sys/disklabel.h
index 46449d5..039b5a6 100644
--- a/sys/sys/disklabel.h
+++ b/sys/sys/disklabel.h
@@ -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);
OpenPOWER on IntegriCloud