summaryrefslogtreecommitdiffstats
path: root/share/examples/kld/dyn_sysctl/dyn_sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'share/examples/kld/dyn_sysctl/dyn_sysctl.c')
-rw-r--r--share/examples/kld/dyn_sysctl/dyn_sysctl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/share/examples/kld/dyn_sysctl/dyn_sysctl.c b/share/examples/kld/dyn_sysctl/dyn_sysctl.c
index 75d351b..5ed5e26 100644
--- a/share/examples/kld/dyn_sysctl/dyn_sysctl.c
+++ b/share/examples/kld/dyn_sysctl/dyn_sysctl.c
@@ -100,8 +100,9 @@ load(module_t mod, int cmd, void *arg)
return (EINVAL);
}
SYSCTL_ADD_PROC(&clist, SYSCTL_CHILDREN(a_root1),
- OID_AUTO, "procedure", CTLFLAG_RD, 0, 0,
- sysctl_dyn_sysctl_test, "A", "I can be here, too");
+ OID_AUTO, "procedure", CTLTYPE_STRING | CTLFLAG_RD,
+ NULL, 0, sysctl_dyn_sysctl_test, "A",
+ "I can be here, too");
printf(" (%p) /kern dyn_sysctl\n", &clist);
/* Overlap second tree with the first. */
OpenPOWER on IntegriCloud