1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

Use NDOSPART instead of NEXTDOSPART.

This commit is contained in:
Yoshihiro Takahashi 2003-01-21 13:59:53 +00:00
parent 5aca100a9e
commit dc5cb962f7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109638

View File

@ -86,7 +86,7 @@ struct open_disk {
#endif
struct disklabel od_disklabel;
int od_nslices; /* slice count */
struct pc98_partition od_slicetab[NEXTDOSPART];
struct pc98_partition od_slicetab[NDOSPART];
};
/*
@ -778,7 +778,7 @@ bd_checkextended(struct open_disk *od, int slicenum)
for (i = 0; i < NDOSPART; i++, dp++) {
if (dp->dp_size == 0)
continue;
if (od->od_nslices == NEXTDOSPART)
if (od->od_nslices == NDOSPART)
goto done;
dp->dp_start += base;
bcopy(dp, &od->od_slicetab[od->od_nslices], sizeof(*dp));