Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev fix gcc-4.5 warnings
details: https://anonhg.NetBSD.org/src/rev/b3eee5620d8e
branches: trunk
changeset: 768512:b3eee5620d8e
user: christos <christos%NetBSD.org@localhost>
date: Thu Aug 18 02:08:06 2011 +0000
description:
fix gcc-4.5 warnings
diffstat:
sys/dev/i2c/dbcool.c | 8 ++++----
sys/dev/pci/radeonfb.c | 7 +++----
2 files changed, 7 insertions(+), 8 deletions(-)
diffs (64 lines):
diff -r a2f26341fff6 -r b3eee5620d8e sys/dev/i2c/dbcool.c
--- a/sys/dev/i2c/dbcool.c Thu Aug 18 00:00:21 2011 +0000
+++ b/sys/dev/i2c/dbcool.c Thu Aug 18 02:08:06 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dbcool.c,v 1.33 2011/08/02 14:06:15 pgoyette Exp $ */
+/* $NetBSD: dbcool.c,v 1.34 2011/08/18 02:08:06 christos Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dbcool.c,v 1.33 2011/08/02 14:06:15 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dbcool.c,v 1.34 2011/08/18 02:08:06 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1542,7 +1542,7 @@
#ifdef DBCOOL_DEBUG
ret = sysctl_createv(&sc->sc_sysctl_log, 0, NULL,
- (const struct sysctlnode **)&node,
+ (void *)&node,
CTLFLAG_READWRITE, CTLTYPE_INT, "reg_select", NULL,
sysctl_dbcool_reg_select,
0, sc, sizeof(int),
@@ -1551,7 +1551,7 @@
node->sysctl_data = sc;
ret = sysctl_createv(&sc->sc_sysctl_log, 0, NULL,
- (const struct sysctlnode **)&node,
+ (void *)&node,
CTLFLAG_READWRITE, CTLTYPE_INT, "reg_access", NULL,
sysctl_dbcool_reg_access,
0, sc, sizeof(int),
diff -r a2f26341fff6 -r b3eee5620d8e sys/dev/pci/radeonfb.c
--- a/sys/dev/pci/radeonfb.c Thu Aug 18 00:00:21 2011 +0000
+++ b/sys/dev/pci/radeonfb.c Thu Aug 18 02:08:06 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: radeonfb.c,v 1.45 2011/07/21 15:25:14 njoly Exp $ */
+/* $NetBSD: radeonfb.c,v 1.46 2011/08/18 02:09:44 christos Exp $ */
/*-
* Copyright (c) 2006 Itronix Inc.
@@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeonfb.c,v 1.45 2011/07/21 15:25:14 njoly Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeonfb.c,v 1.46 2011/08/18 02:09:44 christos Exp $");
#define RADEONFB_DEFAULT_DEPTH 8
@@ -828,8 +828,7 @@
/* and make up the list */
dp->rd_wsscreenlist.nscreens = 1;
- dp->rd_wsscreenlist.screens =
- (const struct wsscreen_descr **)&dp->rd_wsscreens;
+ dp->rd_wsscreenlist.screens = (void *)&dp->rd_wsscreens;
vcons_init(&dp->rd_vd, dp, dp->rd_wsscreens,
&radeonfb_accessops);
Home |
Main Index |
Thread Index |
Old Index