From owner-freebsd-doc@FreeBSD.ORG Sun Aug 19 21:50:02 2007 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B8FB416A418 for ; Sun, 19 Aug 2007 21:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7F4A813C428 for ; Sun, 19 Aug 2007 21:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l7JLo2i4037575 for ; Sun, 19 Aug 2007 21:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l7JLo2w8037574; Sun, 19 Aug 2007 21:50:02 GMT (envelope-from gnats) Resent-Date: Sun, 19 Aug 2007 21:50:02 GMT Resent-Message-Id: <200708192150.l7JLo2w8037574@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Romain Tartiere Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7237516A418 for ; 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 ; 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 ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: docs/115632: [geom][patch] Bad prototype in DECLARE_GEOM_CLASS(9) example X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Romain Tartiere List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Aug 2007 21:50:02 -0000 >Number: 115632 >Category: docs >Synopsis: [geom][patch] Bad prototype in DECLARE_GEOM_CLASS(9) example >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sun Aug 19 21:50:01 GMT 2007 >Closed-Date: >Last-Modified: >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 . >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: >Unformatted: