Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbppc/virtex/dev Silence a gcc warning.



details:   https://anonhg.NetBSD.org/src/rev/8236e2fd6ecc
branches:  trunk
changeset: 780380:8236e2fd6ecc
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Jul 22 14:02:45 2012 +0000

description:
Silence a gcc warning.

diffstat:

 sys/arch/evbppc/virtex/dev/tft.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 1752738d2129 -r 8236e2fd6ecc sys/arch/evbppc/virtex/dev/tft.c
--- a/sys/arch/evbppc/virtex/dev/tft.c  Sun Jul 22 14:02:11 2012 +0000
+++ b/sys/arch/evbppc/virtex/dev/tft.c  Sun Jul 22 14:02:45 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tft.c,v 1.4 2011/07/01 19:03:50 dyoung Exp $ */
+/*     $NetBSD: tft.c,v 1.5 2012/07/22 14:02:45 matt Exp $ */
 
 /*
  * Copyright (c) 2006 Jachym Holecek
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tft.c,v 1.4 2011/07/01 19:03:50 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tft.c,v 1.5 2012/07/22 14:02:45 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -92,8 +92,7 @@
        sc->sc_ws_descr_storage[0] = tft_screen;        /* struct copy */
        sc->sc_ws_descr = sc->sc_ws_descr_storage;
        sc->sc_ws_scrlist.nscreens = 1;
-       sc->sc_ws_scrlist.screens =
-           (const struct wsscreen_descr **)&sc->sc_ws_descr;
+       sc->sc_ws_scrlist.screens = (void *) &sc->sc_ws_descr;
 
        vcons_init(&sc->sc_vc_data, self, sc->sc_ws_descr, accessops);
 



Home | Main Index | Thread Index | Old Index