Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/netbsd32 unconst machine_arch32 for sysctl data ....
details: https://anonhg.NetBSD.org/src/rev/2ac54ff1e1a3
branches: trunk
changeset: 357216:2ac54ff1e1a3
user: kre <kre%NetBSD.org@localhost>
date: Tue Oct 31 16:10:25 2017 +0000
description:
unconst machine_arch32 for sysctl data .. pointed out by Riccardo Mottola
diffstat:
sys/compat/netbsd32/netbsd32_sysctl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 10ad82269ea9 -r 2ac54ff1e1a3 sys/compat/netbsd32/netbsd32_sysctl.c
--- a/sys/compat/netbsd32/netbsd32_sysctl.c Tue Oct 31 15:16:10 2017 +0000
+++ b/sys/compat/netbsd32/netbsd32_sysctl.c Tue Oct 31 16:10:25 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_sysctl.c,v 1.37 2017/10/31 12:37:23 martin Exp $ */
+/* $NetBSD: netbsd32_sysctl.c,v 1.38 2017/10/31 16:10:25 kre 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.37 2017/10/31 12:37:23 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysctl.c,v 1.38 2017/10/31 16:10:25 kre Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ddb.h"
@@ -110,7 +110,7 @@
struct sysctlnode node = *rnode;
#ifndef PROC_MACHINE_ARCH32
extern const char machine_arch32[];
-#define PROC_MACHINE_ARCH32(P) machine_arch32
+#define PROC_MACHINE_ARCH32(P) __UNCONST(machine_arch32)
#endif
node.sysctl_data = PROC_MACHINE_ARCH32(l->l_proc);
Home |
Main Index |
Thread Index |
Old Index