Fix build for KLD dyn_sysctl example
Looks like the example was broken by change of SYSCTL_STATIC_CHILDREN definition in r267992. Fix build by switching to using SYSCTL_ADD_ROOT_NODE PR: 236139 Submitted by: Andrew Reiter <arr@watson.org> MFC after: 1 week
This commit is contained in:
parent
ab0a7934e7
commit
0004c28dda
@ -72,12 +72,10 @@ load(module_t mod, int cmd, void *arg)
|
|||||||
* to different contexts.
|
* to different contexts.
|
||||||
*/
|
*/
|
||||||
printf("TREE ROOT NAME\n");
|
printf("TREE ROOT NAME\n");
|
||||||
a_root = SYSCTL_ADD_NODE(&clist,
|
a_root = SYSCTL_ADD_ROOT_NODE(&clist,
|
||||||
SYSCTL_STATIC_CHILDREN(/* top of sysctl tree */),
|
|
||||||
OID_AUTO, "dyn_sysctl", CTLFLAG_RW, 0,
|
OID_AUTO, "dyn_sysctl", CTLFLAG_RW, 0,
|
||||||
"dyn_sysctl root node");
|
"dyn_sysctl root node");
|
||||||
a_root = SYSCTL_ADD_NODE(&clist1,
|
a_root = SYSCTL_ADD_ROOT_NODE(&clist1,
|
||||||
SYSCTL_STATIC_CHILDREN(/* top of sysctl tree */),
|
|
||||||
OID_AUTO, "dyn_sysctl", CTLFLAG_RW, 0,
|
OID_AUTO, "dyn_sysctl", CTLFLAG_RW, 0,
|
||||||
"dyn_sysctl root node");
|
"dyn_sysctl root node");
|
||||||
if (a_root == NULL) {
|
if (a_root == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user