Date: Mon, 1 Nov 2010 22:47:34 -0400 From: Arnaud Lacombe <lacombar@gmail.com> To: freebsd-doc@freebsd.org Cc: Arnaud Lacombe <lacombar@gmail.com> Subject: [PATCH] fix a few typo in sysctl_ctx_init(9) Message-ID: <1288666054-23167-1-git-send-email-lacombar@gmail.com>
next in thread | raw e-mail | index | archive | help
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com> --- 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 ba8c7f2..51f9d34 100644 --- a/share/man/man9/sysctl_ctx_init.9 +++ b/share/man/man9/sysctl_ctx_init.9 @@ -193,21 +193,21 @@ 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", CTLFLAG_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"); ... oidp = SYSCTL_ADD_NODE( &clist, SYSCTL_STATIC_CHILDREN(_debug), - OID_AUTO, "newtree", CTFLAG_RW, 0, "new tree under debug"); + OID_AUTO, "newtree", CTLFLAG_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_RD, string, 0, "new string leaf"); ... /* Now we can free up the oids */ if(sysctl_ctx_free(&clist)) { printf("can't free this context - other oids depend on it"); return(ENOTEMPTY); } else { - printf("Success!\\n"): + printf("Success!\\n"); return(0); } .Ed -- 1.7.3.12.gf5e62.dirty
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1288666054-23167-1-git-send-email-lacombar>