summaryrefslogtreecommitdiff
path: root/sys/kern/kern_environment.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2001-06-08 05:24:21 +0000
committerPeter Wemm <peter@FreeBSD.org>2001-06-08 05:24:21 +0000
commit0978669829bf545e0e03e372036b685c01a3de1d (patch)
tree86b0161dd1235a75cc934e1a85ca5844895edd8f /sys/kern/kern_environment.c
parent7fa34c1180eb5169ed9b7d031a600f9e24508077 (diff)
Notes
Diffstat (limited to 'sys/kern/kern_environment.c')
-rw-r--r--sys/kern/kern_environment.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/kern/kern_environment.c b/sys/kern/kern_environment.c
index 000306213d32..561f63ddca42 100644
--- a/sys/kern/kern_environment.c
+++ b/sys/kern/kern_environment.c
@@ -151,3 +151,18 @@ kernenv_next(char *cp)
return(cp);
}
+void
+tunable_int_init(void *data)
+{
+ struct tunable_int *d = (struct tunable_int *)data;
+
+ TUNABLE_INT_FETCH(d->path, d->var);
+}
+
+void
+tunable_str_init(void *data)
+{
+ struct tunable_str *d = (struct tunable_str *)data;
+
+ TUNABLE_STR_FETCH(d->path, d->var, d->size);
+}