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

John Baldwin jhb at freebsd.org
Tue Nov 2 13:06:37 UTC 2010


On Monday, November 01, 2010 10:47:34 pm Arnaud Lacombe wrote:
> Signed-off-by: Arnaud Lacombe <lacombar at gmail.com>

Committed, thanks!

> ---
>  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
> 
> _______________________________________________
> freebsd-doc at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-doc
> To unsubscribe, send any mail to "freebsd-doc-unsubscribe at freebsd.org"
> 

-- 
John Baldwin



More information about the freebsd-doc mailing list