Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/stand/lib Make name argument to module_add_com...
details: https://anonhg.NetBSD.org/src/rev/c68f00be0ac8
branches: trunk
changeset: 325774:c68f00be0ac8
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sun Jan 05 21:36:50 2014 +0000
description:
Make name argument to module_add_common const; use this to allow the libsa
fsmod string to soon become const.
diffstat:
sys/arch/i386/stand/lib/exec.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 36557d823cfe -r c68f00be0ac8 sys/arch/i386/stand/lib/exec.c
--- a/sys/arch/i386/stand/lib/exec.c Sun Jan 05 21:10:50 2014 +0000
+++ b/sys/arch/i386/stand/lib/exec.c Sun Jan 05 21:36:50 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec.c,v 1.56 2013/12/30 21:45:51 jakllsch Exp $ */
+/* $NetBSD: exec.c,v 1.57 2014/01/05 21:36:50 jakllsch Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -144,7 +144,7 @@
static size_t btinfo_userconfcommands_size = 0;
static void module_init(const char *);
-static void module_add_common(char *, uint8_t);
+static void module_add_common(const char *, uint8_t);
static void userconf_init(void);
@@ -184,7 +184,7 @@
}
static void
-module_add_common(char *name, uint8_t type)
+module_add_common(const char *name, uint8_t type)
{
boot_module_t *bm, *bmp;
size_t len;
@@ -305,7 +305,7 @@
/* If the root fs type is unusual, load its module. */
if (fsmod != NULL)
- module_add(fsmod);
+ module_add_common(fsmod, BM_TYPE_KMOD);
/*
* Gather some information for the kernel. Do this after the
Home |
Main Index |
Thread Index |
Old Index