From romain@blogreen.org  Sun Aug 19 21:44:31 2007
Return-Path: <romain@blogreen.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 7237516A418
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 19 Aug 2007 21:44:31 +0000 (UTC)
	(envelope-from romain@blogreen.org)
Received: from smtp3-g19.free.fr (smtp3-g19.free.fr [212.27.42.29])
	by mx1.freebsd.org (Postfix) with ESMTP id 3AAE113C45B
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 19 Aug 2007 21:44:30 +0000 (UTC)
	(envelope-from romain@blogreen.org)
Received: from smtp3-g19.free.fr (localhost.localdomain [127.0.0.1])
	by smtp3-g19.free.fr (Postfix) with ESMTP id D4E4C59F86
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 19 Aug 2007 23:44:29 +0200 (CEST)
Received: from marvin.blogreen.org (marvin.blogreen.org [82.247.213.140])
	by smtp3-g19.free.fr (Postfix) with ESMTP id BE01181C9
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 19 Aug 2007 23:44:29 +0200 (CEST)
Received: by marvin.blogreen.org (Postfix, from userid 1001)
	id 11F905C04D; Sun, 19 Aug 2007 23:44:29 +0200 (CEST)
Message-Id: <20070819214429.11F905C04D@marvin.blogreen.org>
Date: Sun, 19 Aug 2007 23:44:29 +0200 (CEST)
From: Romain Tartiere <romain@blogreen.org>
Reply-To: Romain Tartiere <romain@blogreen.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [geom][patch] Bad prototype in DECLARE_GEOM_CLASS(9) example
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         115632
>Category:       docs
>Synopsis:       [geom][patch] Bad prototype in DECLARE_GEOM_CLASS(9) example
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gabor
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 19 21:50:01 GMT 2007
>Closed-Date:    Fri Sep 28 11:15:30 GMT 2007
>Last-Modified:  Fri Sep 28 11:15:30 GMT 2007
>Originator:     Romain Tartiere
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD marvin.blogreen.org 6.2-STABLE FreeBSD 6.2-STABLE #5: Fri Aug 3 14:19:08 CEST 2007 root@marvin.blogreen.org:/usr/obj/usr/src/sys/MARVIN i386


	
>Description:
The documentation of DECLARE_GEOM_CLASS includes a short code snippet,
but the g_example_taste function return type is wrong:
 - "struct geom *" in the man page;
 - "struct g_geom *" in <geom/geom.h>.


>How-To-Repeat:
>Fix:


--- DECLARE_GEOM_CLASS.9.diff begins here ---
--- share/man/man9/DECLARE_GEOM_CLASS.9.orig	2007-08-19 23:20:54.000000000 +0200
+++ share/man/man9/DECLARE_GEOM_CLASS.9	2007-08-19 23:21:16.000000000 +0200
@@ -110,7 +110,7 @@
 .Sh EXAMPLES
 Example class declaration.
 .Bd -literal -offset indent
-static struct geom *
+static struct g_geom *
 g_example_taste(struct g_class *mp, struct g_provider *pp,
     int flags __unused)
 {
--- DECLARE_GEOM_CLASS.9.diff ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->gabor 
Responsible-Changed-By: gabor 
Responsible-Changed-When: Thu Sep 13 18:08:56 UTC 2007 
Responsible-Changed-Why:  
Take. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115632 
State-Changed-From-To: open->patched 
State-Changed-By: gabor 
State-Changed-When: Thu Sep 20 11:12:53 UTC 2007 
State-Changed-Why:  
Patched in HEAD, keeping this for MFC reminder. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115632 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/115632: commit references a PR
Date: Thu, 20 Sep 2007 21:27:12 +0000 (UTC)

 gabor       2007-09-20 10:52:09 UTC
 
   FreeBSD src repository (doc,ports committer)
 
   Modified files:
     share/man/man9       DECLARE_GEOM_CLASS.9 
   Log:
   - Fix a declaration example
   
   PR:             docs/115632
   Submitted by:   Romain Tartiere <romain@blogreen.org>
   Approved by:    re (bmah)
   MFC after:      3 days
   
   Revision  Changes    Path
   1.5       +2 -2      src/share/man/man9/DECLARE_GEOM_CLASS.9
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: gabor 
State-Changed-When: Fri Sep 28 11:14:57 UTC 2007 
State-Changed-Why:  
MFC to RELENG_6 completed, thanks for the submission! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115632 
>Unformatted:
