Make module_machine const char *

This commit is contained in:
matt 2015-06-22 16:35:13 +00:00
parent 76063e720e
commit 9d9e6580c0
2 changed files with 5 additions and 5 deletions

View File

@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.105 2015/03/08 01:17:42 christos E
#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);

View File

@ -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 @@ void module_print(const char *, ...) __printflike(1, 2);
#define MODULE_BASE_SIZE 64
extern char module_base[MODULE_BASE_SIZE];
extern char *module_machine;
extern const char *module_machine;
#else /* _KERNEL */