diff options
author | mdf <mdf@FreeBSD.org> | 2011-01-19 00:57:58 +0000 |
---|---|---|
committer | mdf <mdf@FreeBSD.org> | 2011-01-19 00:57:58 +0000 |
commit | caeebe8c54f48a26f3b4c95db3431267540067a5 (patch) | |
tree | 7a74c504e4b0da0837b930ee1f78aca14bef881e /share | |
parent | 574efcb2958ba37407e674b3211f97b7ea4e7d3f (diff) | |
download | FreeBSD-src-caeebe8c54f48a26f3b4c95db3431267540067a5.zip FreeBSD-src-caeebe8c54f48a26f3b4c95db3431267540067a5.tar.gz |
Fix a few more SYSCTL_PROC() that were missing a CTLFLAG type specifier.
Diffstat (limited to 'share')
-rw-r--r-- | share/examples/kld/dyn_sysctl/dyn_sysctl.c | 5 |
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. */ |