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
1e528cab57
commit
67c1ff30c9
@ -72,12 +72,10 @@ load(module_t mod, int cmd, void *arg)
|
||||
* to different contexts.
|
||||
*/
|
||||
printf("TREE ROOT NAME\n");
|
||||
a_root = SYSCTL_ADD_NODE(&clist,
|
||||
SYSCTL_STATIC_CHILDREN(/* top of sysctl tree */),
|
||||
a_root = SYSCTL_ADD_ROOT_NODE(&clist,
|
||||
OID_AUTO, "dyn_sysctl", CTLFLAG_RW, 0,
|
||||
"dyn_sysctl root node");
|
||||
a_root = SYSCTL_ADD_NODE(&clist1,
|
||||
SYSCTL_STATIC_CHILDREN(/* top of sysctl tree */),
|
||||
a_root = SYSCTL_ADD_ROOT_NODE(&clist1,
|
||||
OID_AUTO, "dyn_sysctl", CTLFLAG_RW, 0,
|
||||
"dyn_sysctl root node");
|
||||
if (a_root == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user