diff options
author | peter <peter@FreeBSD.org> | 2001-06-06 22:17:08 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-06-06 22:17:08 +0000 |
commit | 0732738ec450bcfa11cfc73cc53b16c92c4a5e9a (patch) | |
tree | 58ecfe664c4cc2fd28db0c76b33469ccff8dee55 /sys/kern/kern_linker.c | |
parent | 1127de3ac7859c762c70d8deecce993108ef82f3 (diff) | |
download | FreeBSD-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.c | 6 |
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", |