From 220e3da87e22a8d68c36737d7674d330948e7f5b Mon Sep 17 00:00:00 2001 From: bde Date: Thu, 14 Dec 1995 19:13:36 +0000 Subject: [PATCH] The change of [cb]devsw was missed here. --- sys/scsi/su.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/scsi/su.c b/sys/scsi/su.c index bada8479ad29..5852154064ee 100644 --- a/sys/scsi/su.c +++ b/sys/scsi/su.c @@ -44,7 +44,7 @@ * SUCH DAMAGE. *End copyright * - * $Id: su.c,v 1.11 1995/12/10 14:57:04 bde Exp $ + * $Id: su.c,v 1.12 1995/12/10 20:34:53 bde Exp $ * * Tabstops 4 * XXX devfs entries for this device should be handled by generic scsiconfig @@ -165,11 +165,11 @@ getsws(dev_t dev, int type, int bmaj, cmaj; cmaj = major(scsi_link->dev); - cdev = cdevsw + cmaj; + cdev = cdevsw[cmaj]; chr_dev = OLD_DEV(dev, scsi_link->dev); bmaj = chrtoblk(cmaj); - bdev = (bmaj == NODEV) ? &bnxio : bdevsw + bmaj; + bdev = (bmaj == NODEV) ? &bnxio : bdevsw[bmaj]; blk_dev = OLD_DEV(dev, makedev(bmaj, minor(scsi_link->dev))); }