From 1c964bef19ae2671ce91fcfa1cbc03e08eda3c41 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Tue, 26 Jun 2001 22:31:48 +0000 Subject: 126 -> NBT_BAD --- sys/arch/sparc/sparc/disksubr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/sparc/sparc/disksubr.c b/sys/arch/sparc/sparc/disksubr.c index 3973caa6e3b..440fd75f85a 100644 --- a/sys/arch/sparc/sparc/disksubr.c +++ b/sys/arch/sparc/sparc/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.24 2000/10/18 21:00:40 mickey Exp $ */ +/* $OpenBSD: disksubr.c,v 1.25 2001/06/26 22:31:47 miod Exp $ */ /* $NetBSD: disksubr.c,v 1.16 1996/04/28 20:25:59 thorpej Exp $ */ /* @@ -661,7 +661,7 @@ isbad(bt, cyl, trk, sec) register 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) -- cgit v1.2.3