Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Nov 2010 08:39:53 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-doc@freebsd.org
Cc:        Arnaud Lacombe <lacombar@gmail.com>
Subject:   Re: [PATCH] fix a few typo in sysctl_ctx_init(9)
Message-ID:  <201011020839.53293.jhb@freebsd.org>
In-Reply-To: <1288666054-23167-1-git-send-email-lacombar@gmail.com>
References:  <1288666054-23167-1-git-send-email-lacombar@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, November 01, 2010 10:47:34 pm Arnaud Lacombe wrote:
> Signed-off-by: Arnaud Lacombe <lacombar@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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-doc
> To unsubscribe, send any mail to "freebsd-doc-unsubscribe@freebsd.org"
> 

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011020839.53293.jhb>