diff options
author | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 1999-07-20 03:23:07 +0000 |
---|---|---|
committer | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 1999-07-20 03:23:07 +0000 |
commit | 87a68f2acc87e02a085ffca01cd4215af20b38d9 (patch) | |
tree | 8a2c453297bb2a8a9d2d9391e1b769748dbfcf0a /sys/arch/hp300 | |
parent | 7d9529531983cee80e4de5aba4060218a808f0e4 (diff) |
126 -> NBT_BAD
Fix disklabel/bad sectors stuff in wd
Diffstat (limited to 'sys/arch/hp300')
-rw-r--r-- | sys/arch/hp300/hp300/dkbad.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hp300/hp300/dkbad.c b/sys/arch/hp300/hp300/dkbad.c index 50aea2df4a0..78edf5bfddb 100644 --- a/sys/arch/hp300/hp300/dkbad.c +++ b/sys/arch/hp300/hp300/dkbad.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dkbad.c,v 1.3 1997/04/16 11:56:23 downsj Exp $ */ +/* $OpenBSD: dkbad.c,v 1.4 1999/07/20 03:23:05 csapuntz Exp $ */ /* $NetBSD: dkbad.c,v 1.5 1997/04/01 03:12:15 scottr Exp $ */ /* @@ -58,7 +58,7 @@ isbad(bt, cyl, trk, sec) long blk, bblk; blk = ((long)cyl << 16) + (trk << 8) + sec; - for (i = 0; i < 126; i++) { + for (i = 0; i < NBT_BAD; i++) { bblk = ((long)bt->bt_bad[i].bt_cyl << 16) + bt->bt_bad[i].bt_trksec; if (blk == bblk) return (i); |