Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Explicitly get rid of constness.
details: https://anonhg.NetBSD.org/src/rev/d7351fbc9fa4
branches: trunk
changeset: 765378:d7351fbc9fa4
user: joerg <joerg%NetBSD.org@localhost>
date: Tue May 24 18:28:01 2011 +0000
description:
Explicitly get rid of constness.
diffstat:
sys/dev/pci/twa.c | 6 +++---
sys/dev/pci/twe.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 3f88913d52a4 -r d7351fbc9fa4 sys/dev/pci/twa.c
--- a/sys/dev/pci/twa.c Tue May 24 18:22:02 2011 +0000
+++ b/sys/dev/pci/twa.c Tue May 24 18:28:01 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: twa.c,v 1.36 2010/11/22 23:02:16 dholland Exp $ */
+/* $NetBSD: twa.c,v 1.37 2011/05/24 18:28:01 joerg Exp $ */
/* $wasabi: twa.c,v 1.27 2006/07/28 18:17:21 wrstuden Exp $ */
/*-
@@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: twa.c,v 1.36 2010/11/22 23:02:16 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: twa.c,v 1.37 2011/05/24 18:28:01 joerg Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1615,7 +1615,7 @@
if ((i = sysctl_createv(NULL, 0, NULL, NULL,
0, CTLTYPE_STRING, "driver_version",
SYSCTL_DESCR("twa driver version"),
- NULL, 0, &twaver, 0,
+ NULL, 0, __UNCONST(&twaver), 0,
CTL_HW, node->sysctl_num, CTL_CREATE, CTL_EOL))
!= 0) {
aprint_error_dev(&sc->twa_dv, "could not create %s.%s.driver_version sysctl\n",
diff -r 3f88913d52a4 -r d7351fbc9fa4 sys/dev/pci/twe.c
--- a/sys/dev/pci/twe.c Tue May 24 18:22:02 2011 +0000
+++ b/sys/dev/pci/twe.c Tue May 24 18:28:01 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: twe.c,v 1.93 2010/11/14 05:31:59 uebayasi Exp $ */
+/* $NetBSD: twe.c,v 1.94 2011/05/24 18:28:01 joerg Exp $ */
/*-
* Copyright (c) 2000, 2001, 2002, 2003, 2004 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: twe.c,v 1.93 2010/11/14 05:31:59 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: twe.c,v 1.94 2011/05/24 18:28:01 joerg Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -476,7 +476,7 @@
if ((i = sysctl_createv(NULL, 0, NULL, NULL,
0, CTLTYPE_STRING, "driver_version",
SYSCTL_DESCR("twe0 driver version"),
- NULL, 0, &twever, 0,
+ NULL, 0, __UNCONST(&twever), 0,
CTL_HW, node->sysctl_num, CTL_CREATE, CTL_EOL))
!= 0) {
aprint_error_dev(&sc->sc_dv, "could not create %s.%s.driver_version sysctl\n",
Home |
Main Index |
Thread Index |
Old Index