Module Name: src Committed By: jakllsch Date: Sun Jan 5 21:36:50 UTC 2014
Modified Files: src/sys/arch/i386/stand/lib: exec.c Log Message: Make name argument to module_add_common const; use this to allow the libsa fsmod string to soon become const. To generate a diff of this commit: cvs rdiff -u -r1.56 -r1.57 src/sys/arch/i386/stand/lib/exec.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/i386/stand/lib/exec.c diff -u src/sys/arch/i386/stand/lib/exec.c:1.56 src/sys/arch/i386/stand/lib/exec.c:1.57 --- src/sys/arch/i386/stand/lib/exec.c:1.56 Mon Dec 30 21:45:51 2013 +++ src/sys/arch/i386/stand/lib/exec.c Sun Jan 5 21:36:50 2014 @@ -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 struct btinfo_userconfcommands *b 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 @@ fs_add(char *name) } 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 @@ common_load_kernel(const char *file, u_l /* 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