summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>1999-07-20 03:23:07 +0000
committerConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>1999-07-20 03:23:07 +0000
commit87a68f2acc87e02a085ffca01cd4215af20b38d9 (patch)
tree8a2c453297bb2a8a9d2d9391e1b769748dbfcf0a /sys/arch
parent7d9529531983cee80e4de5aba4060218a808f0e4 (diff)
126 -> NBT_BAD
Fix disklabel/bad sectors stuff in wd
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/amiga/amiga/dkbad.c4
-rw-r--r--sys/arch/atari/atari/dkbad.c2
-rw-r--r--sys/arch/hp300/hp300/dkbad.c4
-rw-r--r--sys/arch/i386/i386/dkbad.c2
-rw-r--r--sys/arch/mvme68k/mvme68k/dkbad.c4
-rw-r--r--sys/arch/mvme88k/mvme88k/dkbad.c4
6 files changed, 10 insertions, 10 deletions
diff --git a/sys/arch/amiga/amiga/dkbad.c b/sys/arch/amiga/amiga/dkbad.c
index 00cfee99b06..41df81b57c8 100644
--- a/sys/arch/amiga/amiga/dkbad.c
+++ b/sys/arch/amiga/amiga/dkbad.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dkbad.c,v 1.2 1996/05/02 06:43:16 niklas Exp $ */
+/* $OpenBSD: dkbad.c,v 1.3 1999/07/20 03:23:05 csapuntz Exp $ */
/* $NetBSD: dkbad.c,v 1.7 1996/04/21 21:07:00 veego Exp $ */
/*
@@ -58,7 +58,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)
return (i);
diff --git a/sys/arch/atari/atari/dkbad.c b/sys/arch/atari/atari/dkbad.c
index d426a362e83..ecf2c92ed7d 100644
--- a/sys/arch/atari/atari/dkbad.c
+++ b/sys/arch/atari/atari/dkbad.c
@@ -53,7 +53,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)
return (i);
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);
diff --git a/sys/arch/i386/i386/dkbad.c b/sys/arch/i386/i386/dkbad.c
index 25cd19bb7d1..ac3041f8236 100644
--- a/sys/arch/i386/i386/dkbad.c
+++ b/sys/arch/i386/i386/dkbad.c
@@ -57,7 +57,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)
return (i);
diff --git a/sys/arch/mvme68k/mvme68k/dkbad.c b/sys/arch/mvme68k/mvme68k/dkbad.c
index 38f26a4e960..9d0de666038 100644
--- a/sys/arch/mvme68k/mvme68k/dkbad.c
+++ b/sys/arch/mvme68k/mvme68k/dkbad.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dkbad.c,v 1.3 1996/04/28 10:59:00 deraadt Exp $ */
+/* $OpenBSD: dkbad.c,v 1.4 1999/07/20 03:23:05 csapuntz Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@@ -54,7 +54,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)
return (i);
diff --git a/sys/arch/mvme88k/mvme88k/dkbad.c b/sys/arch/mvme88k/mvme88k/dkbad.c
index 84357e9decc..cc3a62d7697 100644
--- a/sys/arch/mvme88k/mvme88k/dkbad.c
+++ b/sys/arch/mvme88k/mvme88k/dkbad.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dkbad.c,v 1.2 1999/02/09 06:36:28 smurph Exp $ */
+/* $OpenBSD: dkbad.c,v 1.3 1999/07/20 03:23:06 csapuntz Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@@ -54,7 +54,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)
return (i);