Bug 30697

Summary: mb_fixhdr correction for mbchain.9
Product: Documentation Reporter: Jonathan Hanna <jh>
Component: Books & ArticlesAssignee: Boris Popov <bp>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Jonathan Hanna 2001-09-21 00:30:01 UTC

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,
Comment 1 Murray Stokely freebsd_committer freebsd_triage 2001-09-24 04:09:45 UTC
State Changed
From-To: open->analyzed

This fix looks correct to me, but I'd prefer if Boris gave it the ok 
before it gets committed. 



Comment 2 Murray Stokely freebsd_committer freebsd_triage 2001-09-24 04:09:45 UTC
Responsible Changed
From-To: freebsd-doc->bp

bp wrote the code in question.
Comment 3 Murray Stokely freebsd_committer freebsd_triage 2001-09-24 07:30:55 UTC
State Changed
From-To: analyzed->closed

Your fix has been committed with a minor change (sentences start on a 
new line in our manpages).  Thanks!