Module Name: src Committed By: joerg Date: Tue May 24 18:28:01 UTC 2011
Modified Files: src/sys/dev/pci: twa.c twe.c Log Message: Explicitly get rid of constness. To generate a diff of this commit: cvs rdiff -u -r1.36 -r1.37 src/sys/dev/pci/twa.c cvs rdiff -u -r1.93 -r1.94 src/sys/dev/pci/twe.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/twa.c diff -u src/sys/dev/pci/twa.c:1.36 src/sys/dev/pci/twa.c:1.37 --- src/sys/dev/pci/twa.c:1.36 Mon Nov 22 23:02:16 2010 +++ src/sys/dev/pci/twa.c Tue May 24 18:28:01 2011 @@ -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", Index: src/sys/dev/pci/twe.c diff -u src/sys/dev/pci/twe.c:1.93 src/sys/dev/pci/twe.c:1.94 --- src/sys/dev/pci/twe.c:1.93 Sun Nov 14 05:31:59 2010 +++ src/sys/dev/pci/twe.c Tue May 24 18:28:01 2011 @@ -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",