Source-Changes-HG archive

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

[src/thorpej_scsipi]: src/sys/arch/amiga/dev Shouldn't the compiler warn abou...



details:   https://anonhg.NetBSD.org/src/rev/61ae012dee76
branches:  thorpej_scsipi
changeset: 477491:61ae012dee76
user:      is <is%NetBSD.org@localhost>
date:      Mon Apr 23 19:05:39 2001 +0000

description:
Shouldn't the compiler warn about uninitialized variables?

diffstat:

 sys/arch/amiga/dev/siop.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 12338192d895 -r 61ae012dee76 sys/arch/amiga/dev/siop.c
--- a/sys/arch/amiga/dev/siop.c Mon Apr 23 16:48:58 2001 +0000
+++ b/sys/arch/amiga/dev/siop.c Mon Apr 23 19:05:39 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: siop.c,v 1.43.2.3 2001/03/29 09:57:41 bouyer Exp $     */
+/*     $NetBSD: siop.c,v 1.43.2.4 2001/04/23 19:05:39 is Exp $ */
 
 /*
  * Copyright (c) 1994 Michael L. Hitch
@@ -198,7 +198,7 @@
        struct scsipi_xfer *xs;
        struct scsipi_periph *periph;
        struct siop_acb *acb;
-       struct siop_softc *sc;
+       struct siop_softc *sc = (void *)chan->chan_adapter->adapt_dev;
        int flags, s;
 
        switch (req) {



Home | Main Index | Thread Index | Old Index