From jhanna@h24-79-119-53.vc.shawcable.net  Thu Sep 20 16:21:42 2001
Return-Path: <jhanna@h24-79-119-53.vc.shawcable.net>
Received: from h24-79-119-53.vc.shawcable.net (h24-79-126-98.vc.shawcable.net [24.79.126.98])
	by hub.freebsd.org (Postfix) with ESMTP id 67E7937B414
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 20 Sep 2001 16:21:41 -0700 (PDT)
Received: (from jh@localhost)
	by h24-79-119-53.vc.shawcable.net (8.11.6/8.11.4) id f8KNLew25207;
	Thu, 20 Sep 2001 16:21:40 -0700 (PDT)
	(envelope-from jhanna)
Message-Id: <200109202321.f8KNLew25207@h24-79-119-53.vc.shawcable.net>
Date: Thu, 20 Sep 2001 16:21:40 -0700 (PDT)
From: Jonathan Hanna <jh@h24-79-119-53.vc.shawcable.net>
Reply-To: Jonathan Hanna <jhanna@home.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: mb_fixhdr correction for mbchain.9
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         30697
>Category:       docs
>Synopsis:       mb_fixhdr correction for mbchain.9
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bp
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 20 16:30:01 PDT 2001
>Closed-Date:    Sun Sep 23 23:30:55 PDT 2001
>Last-Modified:  Sun Sep 23 23:31:32 PDT 2001
>Originator:     Jonathan Hanna
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD roller.pangolin-systems.com 5.0-CURRENT FreeBSD 5.0-CURRENT #2: Sun Sep 2 19:54:20 PDT 2001 jh@roller.pangolin-systems.com:/homes/obj/homes2/src/sys/ROLLER i386

>Description:

>How-To-Repeat:

>Fix:

--- mbchain.9	2001/09/20 23:04:02	1.1
+++ mbchain.9	2001/09/20 23:12:43
@@ -135,7 +135,7 @@
 .Fn mb_fixhdr
 recalculates the length of an mbuf chain and updates the
 .Va m_pkthdr.len
-field of the first mbuf in the chain.
+field of the first mbuf in the chain. It returns the calculated length.
 .Pp
 .Fn mb_reserve
 ensures that the object of the length specified by the
@@ -191,8 +191,9 @@
 .Sh RETURN VALUES
 All
 .Ft int
-functions return zero if successful,
-otherwise error code is returned.
+functions except
+.Fn mb_fixhdr
+return zero if successful and an error code otherwise.
 .Pp
 .Em Note :
 after failure of any function, an mbuf chain is left in the broken state,
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: murray 
State-Changed-When: Sun Sep 23 20:09:45 PDT 2001 
State-Changed-Why:  
This fix looks correct to me, but I'd prefer if Boris gave it the ok 
before it gets committed. 



Responsible-Changed-From-To: freebsd-doc->bp 
Responsible-Changed-By: murray 
Responsible-Changed-When: Sun Sep 23 20:09:45 PDT 2001 
Responsible-Changed-Why:  
bp wrote the code in question. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=30697 
State-Changed-From-To: analyzed->closed 
State-Changed-By: murray 
State-Changed-When: Sun Sep 23 23:30:55 PDT 2001 
State-Changed-Why:  
Your fix has been committed with a minor change (sentences start on a 
new line in our manpages).  Thanks! 


http://www.FreeBSD.org/cgi/query-pr.cgi?pr=30697 
>Unformatted:
