Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/thorpej_scsipi]: src/sys/dev/scsipi Make compile.



details:   https://anonhg.NetBSD.org/src/rev/2929a4f35864
branches:  thorpej_scsipi
changeset: 477354:2929a4f35864
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sat Jan 06 16:15:17 2001 +0000

description:
Make compile.

diffstat:

 sys/dev/scsipi/ss.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 2f7e7a6f4439 -r 2929a4f35864 sys/dev/scsipi/ss.c
--- a/sys/dev/scsipi/ss.c       Fri Jan 05 17:33:37 2001 +0000
+++ b/sys/dev/scsipi/ss.c       Sat Jan 06 16:15:17 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ss.c,v 1.26.2.4 2001/01/05 17:36:27 bouyer Exp $       */
+/*     $NetBSD: ss.c,v 1.26.2.5 2001/01/06 16:15:17 bouyer Exp $       */
 
 /*
  * Copyright (c) 1995 Kenneth Stailey.  All rights reserved.
@@ -188,7 +188,7 @@
        }
 
        /* Kill off any pending commands. */
-       scsipi_kill_pending(ss->sc_link);
+       scsipi_kill_pending(ss->sc_periph);
 
        splx(s);
 
@@ -388,6 +388,7 @@
        struct buf *bp;
 {
        struct ss_softc *ss = ss_cd.cd_devs[SSUNIT(bp->b_dev)];
+       struct scsipi_periph *periph = ss->sc_periph;
        int s;
 
        SC_DEBUG(ss->sc_periph, SCSIPI_DB1,
@@ -398,7 +399,7 @@
         */
        if ((ss->sc_dev.dv_flags & DVF_ACTIVE) == 0) {
                bp->b_flags |= B_ERROR;
-               if (ss->sc_link->flags & SDEV_OPEN)
+               if (periph->periph_flags & PERIPH_OPEN)
                        bp->b_error = EIO;
                else
                        bp->b_error = ENODEV;



Home | Main Index | Thread Index | Old Index