summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_linker.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-06-06 22:17:08 +0000
committerpeter <peter@FreeBSD.org>2001-06-06 22:17:08 +0000
commit0732738ec450bcfa11cfc73cc53b16c92c4a5e9a (patch)
tree58ecfe664c4cc2fd28db0c76b33469ccff8dee55 /sys/kern/kern_linker.c
parent1127de3ac7859c762c70d8deecce993108ef82f3 (diff)
downloadFreeBSD-src-0732738ec450bcfa11cfc73cc53b16c92c4a5e9a.zip
FreeBSD-src-0732738ec450bcfa11cfc73cc53b16c92c4a5e9a.tar.gz
Make the TUNABLE_*() macros look and behave more consistantly like the
SYSCTL_*() macros. TUNABLE_INT_DECL() was an odd name because it didn't actually declare the int, which is what the name suggests it would do.
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 e8cfb56..affc1dc 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",
OpenPOWER on IntegriCloud