From owner-freebsd-doc@FreeBSD.ORG Tue Nov 2 13:06:37 2010 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 876D9106566B for ; Tue, 2 Nov 2010 13:06:37 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 558928FC13 for ; Tue, 2 Nov 2010 13:06:37 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id DC06346B0C; Tue, 2 Nov 2010 09:06:36 -0400 (EDT) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 99AA98A009; Tue, 2 Nov 2010 09:06:35 -0400 (EDT) From: John Baldwin To: freebsd-doc@freebsd.org Date: Tue, 2 Nov 2010 08:39:53 -0400 User-Agent: KMail/1.13.5 (FreeBSD/7.3-CBSD-20100819; KDE/4.4.5; amd64; ; ) References: <1288666054-23167-1-git-send-email-lacombar@gmail.com> In-Reply-To: <1288666054-23167-1-git-send-email-lacombar@gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201011020839.53293.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Tue, 02 Nov 2010 09:06:35 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.96.3 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.9 required=4.2 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bigwig.baldwin.cx Cc: Arnaud Lacombe Subject: Re: [PATCH] fix a few typo in sysctl_ctx_init(9) X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Nov 2010 13:06:37 -0000 On Monday, November 01, 2010 10:47:34 pm Arnaud Lacombe wrote: > Signed-off-by: Arnaud Lacombe 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