summaryrefslogtreecommitdiff
path: root/sys/kern/kern_linker.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2001-06-06 22:17:08 +0000
committerPeter Wemm <peter@FreeBSD.org>2001-06-06 22:17:08 +0000
commit81930014ef2caa3b69ed663b695976aa4ee7b34d (patch)
treedd8285cb8ca0683b3aec19388562baed440628cf /sys/kern/kern_linker.c
parent23d3a203adf35f629acbd392b7579f2658b11886 (diff)
Notes
Diffstat (limited to 'sys/kern/kern_linker.c')
-rw-r--r--sys/kern/kern_linker.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/kern_linker.c b/sys/kern/kern_linker.c
index e8cfb56e74ac..affc1dc3fecc 100644
--- a/sys/kern/kern_linker.c
+++ b/sys/kern/kern_linker.c
@@ -1208,14 +1208,12 @@ SYSINIT(preload, SI_SUB_KLD, SI_ORDER_MIDDLE, linker_preload, 0);
* character as a separator to be consistent with the bootloader.
*/
-static char def_linker_path[] = "/boot/modules/;/modules/;/boot/kernel/";
-static char linker_path[MAXPATHLEN] = "";
+static char linker_path[MAXPATHLEN] = "/boot/modules/;/modules/;/boot/kernel/";
SYSCTL_STRING(_kern, OID_AUTO, module_path, CTLFLAG_RW, linker_path,
sizeof(linker_path), "module load search path");
-TUNABLE_STR_DECL("module_path", def_linker_path, linker_path,
- sizeof(linker_path));
+TUNABLE_STR("module_path", linker_path, sizeof(linker_path));
static char *linker_ext_list[] = {
".ko",