Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/dev In ki2c_write() Apply __UNCONST() to the...



details:   https://anonhg.NetBSD.org/src/rev/fd157f0f887d
branches:  trunk
changeset: 581800:fd157f0f887d
user:      nathanw <nathanw%NetBSD.org@localhost>
date:      Sun Jun 05 20:16:35 2005 +0000

description:
In ki2c_write() Apply __UNCONST() to the data parameter passed to
ki2c_start(). The same back-end routine does reads and writes, so
there's no real type-safety to be had here.

diffstat:

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

diffs (16 lines):

diff -r dd140dba8b98 -r fd157f0f887d sys/arch/macppc/dev/ki2c.c
--- a/sys/arch/macppc/dev/ki2c.c        Sun Jun 05 20:05:48 2005 +0000
+++ b/sys/arch/macppc/dev/ki2c.c        Sun Jun 05 20:16:35 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ki2c.c,v 1.1 2003/12/27 02:19:34 grant Exp $   */
+/*     $NetBSD: ki2c.c,v 1.2 2005/06/05 20:16:35 nathanw Exp $ */
 /*     Id: ki2c.c,v 1.7 2002/10/05 09:56:05 tsubai Exp */
 
 /*-
@@ -363,5 +363,5 @@
        const void *data;
 {
        sc->sc_flags = 0;
-       return ki2c_start(sc, addr, subaddr, (void *)data, len);
+       return ki2c_start(sc, addr, subaddr, __UNCONST(data), len);
 }



Home | Main Index | Thread Index | Old Index