Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/i2c Use (void *) instead of (type **) which gcc comp...



details:   https://anonhg.NetBSD.org/src/rev/05768898085d
branches:  trunk
changeset: 780545:05768898085d
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Jul 28 23:03:47 2012 +0000

description:
Use (void *) instead of (type **) which gcc complains about.

diffstat:

 sys/dev/i2c/g760a.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 6fc2fa65e063 -r 05768898085d sys/dev/i2c/g760a.c
--- a/sys/dev/i2c/g760a.c       Sat Jul 28 23:02:57 2012 +0000
+++ b/sys/dev/i2c/g760a.c       Sat Jul 28 23:03:47 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: g760a.c,v 1.2 2011/06/20 20:16:19 pgoyette Exp $       */
+/*     $NetBSD: g760a.c,v 1.3 2012/07/28 23:03:47 matt Exp $   */
 
 /*-
  * Copyright (C) 2008 A.Leo.
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: g760a.c,v 1.2 2011/06/20 20:16:19 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: g760a.c,v 1.3 2012/07/28 23:03:47 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -222,7 +222,7 @@
 
        sc->sc_sme = sysmon_envsys_create();
 
-       ret = sysctl_createv(NULL, 0, NULL, (const struct sysctlnode**)&me,
+       ret = sysctl_createv(NULL, 0, NULL, (void *)&me,
                        CTLFLAG_READWRITE,
                        CTLTYPE_NODE, device_xname(sc->sc_dev), NULL,
                        NULL, 0, NULL, 0,
@@ -236,7 +236,7 @@
        if (sysmon_envsys_sensor_attach(sc->sc_sme, &sc->sc_sensor))
                goto out;
 
-       ret = sysctl_createv(NULL, 0, NULL, (const struct sysctlnode**)&node,
+       ret = sysctl_createv(NULL, 0, NULL, (void *)&node,
                        CTLFLAG_READWRITE,
                        CTLTYPE_INT, "rpm", sc->sc_sensor.desc,
                        sysctl_g760a_rpm, 0x42, NULL, 0,



Home | Main Index | Thread Index | Old Index