CTASSERT the size of struct dos_partition.

This commit is contained in:
phk 2002-04-04 09:36:15 +00:00
parent a22a153ace
commit bc9ecd6837
3 changed files with 9 additions and 0 deletions

View File

@ -348,6 +348,9 @@ struct dos_partition {
u_int32_t dp_start; /* absolute starting sector number */
u_int32_t dp_size; /* partition size in sectors */
};
#ifdef CTASSERT
CTASSERT(sizeof (struct dos_partition) == 16);
#endif
#endif
#define DPSECT(s) ((s) & 0x3f) /* isolate relevant bits of sector */

View File

@ -348,6 +348,9 @@ struct dos_partition {
u_int32_t dp_start; /* absolute starting sector number */
u_int32_t dp_size; /* partition size in sectors */
};
#ifdef CTASSERT
CTASSERT(sizeof (struct dos_partition) == 16);
#endif
#endif
#define DPSECT(s) ((s) & 0x3f) /* isolate relevant bits of sector */

View File

@ -348,6 +348,9 @@ struct dos_partition {
u_int32_t dp_start; /* absolute starting sector number */
u_int32_t dp_size; /* partition size in sectors */
};
#ifdef CTASSERT
CTASSERT(sizeof (struct dos_partition) == 16);
#endif
#endif
#define DPSECT(s) ((s) & 0x3f) /* isolate relevant bits of sector */