Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Make module_machine const char *
details: https://anonhg.NetBSD.org/src/rev/9c5a48cb5c9a
branches: trunk
changeset: 339019:9c5a48cb5c9a
user: matt <matt%NetBSD.org@localhost>
date: Mon Jun 22 16:35:13 2015 +0000
description:
Make module_machine const char *
diffstat:
sys/kern/kern_module.c | 6 +++---
sys/sys/module.h | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 9be07d4aa800 -r 9c5a48cb5c9a sys/kern/kern_module.c
--- a/sys/kern/kern_module.c Mon Jun 22 14:17:04 2015 +0000
+++ b/sys/kern/kern_module.c Mon Jun 22 16:35:13 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_module.c,v 1.105 2015/03/08 01:17:42 christos Exp $ */
+/* $NetBSD: kern_module.c,v 1.106 2015/06/22 16:35:13 matt Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.105 2015/03/08 01:17:42 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.106 2015/06/22 16:35:13 matt Exp $");
#define _MODULE_INTERNAL
@@ -58,7 +58,7 @@
#include <uvm/uvm_extern.h>
struct vm_map *module_map;
-char *module_machine;
+const char *module_machine;
char module_base[MODULE_BASE_SIZE];
struct modlist module_list = TAILQ_HEAD_INITIALIZER(module_list);
diff -r 9be07d4aa800 -r 9c5a48cb5c9a sys/sys/module.h
--- a/sys/sys/module.h Mon Jun 22 14:17:04 2015 +0000
+++ b/sys/sys/module.h Mon Jun 22 16:35:13 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: module.h,v 1.37 2015/06/19 14:23:59 martin Exp $ */
+/* $NetBSD: module.h,v 1.38 2015/06/22 16:35:13 matt Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -185,7 +185,7 @@
#define MODULE_BASE_SIZE 64
extern char module_base[MODULE_BASE_SIZE];
-extern char *module_machine;
+extern const char *module_machine;
#else /* _KERNEL */
Home |
Main Index |
Thread Index |
Old Index