Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/isa avoid cast



details:   https://anonhg.NetBSD.org/src/rev/fc0f3687b92f
branches:  trunk
changeset: 477637:fc0f3687b92f
user:      drochner <drochner%NetBSD.org@localhost>
date:      Mon Oct 25 19:39:54 1999 +0000

description:
avoid cast

diffstat:

 sys/dev/isa/wss_isa.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r f02f52acf9a4 -r fc0f3687b92f sys/dev/isa/wss_isa.c
--- a/sys/dev/isa/wss_isa.c     Mon Oct 25 19:30:19 1999 +0000
+++ b/sys/dev/isa/wss_isa.c     Mon Oct 25 19:39:54 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wss_isa.c,v 1.8 1999/08/14 21:19:29 augustss Exp $     */
+/*     $NetBSD: wss_isa.c,v 1.9 1999/10/25 19:39:54 drochner Exp $     */
 
 /*
  * Copyright (c) 1994 John Brezak
@@ -110,7 +110,7 @@
     struct wss_softc *sc;
     struct isa_attach_args *ia;
 {
-    struct ad1848_softc *ac = (struct ad1848_softc *)&sc->sc_ad1848;
+    struct ad1848_softc *ac = &sc->sc_ad1848.sc_ad1848;
     static u_char interrupt_bits[12] = {
        -1, -1, -1, -1, -1, -1, -1, 0x08, -1, 0x10, 0x18, 0x20
     };



Home | Main Index | Thread Index | Old Index