diff options
author | markm <markm@FreeBSD.org> | 2004-04-06 20:16:10 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2004-04-06 20:16:10 +0000 |
commit | 3a7da58e6191965158723c89f1486b285ec69f67 (patch) | |
tree | dc879bbd6fbb51b9554f76745b3df7bf01762c69 /share | |
parent | 04c9462c02277326b6904fe3744a4cf0e97ac675 (diff) | |
download | FreeBSD-src-3a7da58e6191965158723c89f1486b285ec69f67.zip FreeBSD-src-3a7da58e6191965158723c89f1486b285ec69f67.tar.gz |
Fix some syntax errors in examples. These were discovered when trying
to follow the examples concerned.
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man9/sysctl_ctx_init.9 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/share/man/man9/sysctl_ctx_init.9 b/share/man/man9/sysctl_ctx_init.9 index fffecb1..4c7dc73 100644 --- a/share/man/man9/sysctl_ctx_init.9 +++ b/share/man/man9/sysctl_ctx_init.9 @@ -192,14 +192,14 @@ char *string = "dynamic sysctl"; sysctl_ctx_init(&clist); oidp = SYSCTL_ADD_NODE( &clist, SYSCTL_STATIC_CHILDREN(/* tree top */), - OID_AUTO, newtree, CTFLAG_RW, 0, "new top level tree"); + OID_AUTO, "newtree", CTFLAG_RW, 0, "new top level tree"); oidp = SYSCTL_ADD_INT( &clist, SYSCTL_CHILDREN(oidp), - OID_AUTO, newint, CTLFLAG_RW, &a_int, 0, "new int leaf"); + OID_AUTO, "newint", CTLFLAG_RW, &a_int, 0, "new int leaf"); ... oidp = SYSCTL_ADD_NODE( &clist, SYSCTL_STATIC_CHILDREN(_debug), - OID_AUTO, newtree, CTFLAG_RW, 0, "new tree under debug"); + OID_AUTO, "newtree", CTFLAG_RW, 0, "new tree under debug"); oidp = SYSCTL_ADD_STRING( &clist, SYSCTL_CHILDREN(oidp), - OID_AUTO, newstring, CTLFLAG_R, string, 0, "new string leaf"); + OID_AUTO, "newstring", CTLFLAG_R, string, 0, "new string leaf"); ... /* Now we can free up the oids */ if(sysctl_ctx_free(&clist)) { |