[PATCH] fix a few typo in sysctl_ctx_init(9)

Arnaud Lacombe lacombar at gmail.com
Tue Nov 2 03:21:23 UTC 2010


Signed-off-by: Arnaud Lacombe <lacombar at 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




More information about the freebsd-doc mailing list