aboutsummaryrefslogtreecommitdiff
path: root/sys/boot
diff options
context:
space:
mode:
authorYoshihiro Takahashi <nyan@FreeBSD.org>2003-01-21 13:59:53 +0000
committerYoshihiro Takahashi <nyan@FreeBSD.org>2003-01-21 13:59:53 +0000
commitdc5cb962f7298a495711664d01b34b7a9f706412 (patch)
tree2968f78df1d39d4685b58e034b7fd98a061b882e /sys/boot
parent5aca100a9ef126b1dde6f2f965b50b9a692791aa (diff)
Notes
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/pc98/libpc98/biosdisk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/pc98/libpc98/biosdisk.c b/sys/boot/pc98/libpc98/biosdisk.c
index 2d9afbd7bb9d..d1427f91ec84 100644
--- a/sys/boot/pc98/libpc98/biosdisk.c
+++ b/sys/boot/pc98/libpc98/biosdisk.c
@@ -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));