diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-07 06:56:16 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-07 06:56:16 +0000 |
commit | 8a836816791cedf4b8b9c0387db0bbbffa977a86 (patch) | |
tree | 837cfa550b94a1b7830156e4a8434e148624271a /sys/arch/amiga | |
parent | e4ca8552c1797108085b6d7f15e770c7686da261 (diff) |
oops, i did not handle nchrdev correctly
Diffstat (limited to 'sys/arch/amiga')
-rw-r--r-- | sys/arch/amiga/amiga/conf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amiga/amiga/conf.c b/sys/arch/amiga/amiga/conf.c index 6b29db09211..495ed3a2c7b 100644 --- a/sys/arch/amiga/amiga/conf.c +++ b/sys/arch/amiga/amiga/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.21 1998/07/07 03:02:30 deraadt Exp $ */ +/* $OpenBSD: conf.c,v 1.22 1998/07/07 06:55:56 deraadt Exp $ */ /* $NetBSD: conf.c,v 1.42 1997/01/07 11:35:03 mrg Exp $ */ /*- @@ -263,7 +263,7 @@ chrtoblk(dev) { int blkmaj; - if (major(dev) >= MAXDEV || + if (major(dev) >= nchrdev || major(dev) > sizeof(chrtoblktbl)/sizeof(chrtoblktbl[0])) return (NODEV); blkmaj = chrtoblktbl[major(dev)]; |