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 it compile again.



details:   https://anonhg.NetBSD.org/src/rev/e0e25ac1a792
branches:  thorpej_scsipi
changeset: 477346:e0e25ac1a792
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Wed Dec 13 18:29:06 2000 +0000

description:
Make it compile again.

diffstat:

 sys/dev/scsipi/sd.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 358f4f9f0067 -r e0e25ac1a792 sys/dev/scsipi/sd.c
--- a/sys/dev/scsipi/sd.c       Wed Dec 13 15:49:14 2000 +0000
+++ b/sys/dev/scsipi/sd.c       Wed Dec 13 18:29:06 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sd.c,v 1.151.2.6 2000/12/13 15:50:13 bouyer Exp $      */
+/*     $NetBSD: sd.c,v 1.151.2.7 2000/12/13 18:29:06 bouyer Exp $      */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -837,8 +837,8 @@
         * in a 10-byte read/write actually means 0 blocks.
         */
        if ((sd->flags & SDF_ANCIENT) &&
-           ((sd->sc_link->flags & (SDEV_REMOVABLE | SDEV_MEDIA_LOADED)) !=
-            SDEV_REMOVABLE)) {
+           ((sd->sc_periph->periph_flags &
+           (PERIPH_REMOVABLE | PERIPH_MEDIA_LOADED)) != PERIPH_REMOVABLE)) {
                max = sd->sc_dk.dk_label->d_secsize * 0xff;
 
                if (bp->b_bcount > max)



Home | Main Index | Thread Index | Old Index