Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/netbsd32 Use __UNCONST to get rid of const
details: https://anonhg.NetBSD.org/src/rev/26960b7463d1
branches: trunk
changeset: 765268:26960b7463d1
user: joerg <joerg%NetBSD.org@localhost>
date: Mon May 23 21:34:01 2011 +0000
description:
Use __UNCONST to get rid of const
diffstat:
sys/compat/netbsd32/netbsd32_sysctl.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (33 lines):
diff -r 1187eabbf286 -r 26960b7463d1 sys/compat/netbsd32/netbsd32_sysctl.c
--- a/sys/compat/netbsd32/netbsd32_sysctl.c Mon May 23 21:30:56 2011 +0000
+++ b/sys/compat/netbsd32/netbsd32_sysctl.c Mon May 23 21:34:01 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_sysctl.c,v 1.31 2010/04/23 15:19:20 rmind Exp $ */
+/* $NetBSD: netbsd32_sysctl.c,v 1.32 2011/05/23 21:34:01 joerg Exp $ */
/*
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysctl.c,v 1.31 2010/04/23 15:19:20 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysctl.c,v 1.32 2011/05/23 21:34:01 joerg Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ddb.h"
@@ -143,12 +143,12 @@
sysctl_createv(&netbsd32_clog, 0, &_root, NULL,
CTLFLAG_PERMANENT,
CTLTYPE_STRING, "machine", NULL,
- NULL, 0, &machine32, 0,
+ NULL, 0, __UNCONST(&machine32), 0,
CTL_HW, HW_MACHINE, CTL_EOL);
sysctl_createv(&netbsd32_clog, 0, &_root, NULL,
CTLFLAG_PERMANENT,
CTLTYPE_STRING, "machine_arch", NULL,
- NULL, 0, &machine_arch32, 0,
+ NULL, 0, __UNCONST(&machine_arch32), 0,
CTL_HW, HW_MACHINE_ARCH, CTL_EOL);
}
Home |
Main Index |
Thread Index |
Old Index