Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Oct 2008 01:49:52 -0800 (AKDT)
From:      Mel <mel.xyzzy@rachie.is-a-geek.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   docs/128089: [patch] Incorrect type in archive_write manpage
Message-ID:  <20081014094952.8CAFA33C1B@squish.rachie.is-a-geek.net>
Resent-Message-ID: <200810140950.m9E9o5Nr082627@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         128089
>Category:       docs
>Synopsis:       [patch] Incorrect type in archive_write manpage
>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:   Tue Oct 14 09:50:05 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Mel
>Release:        FreeBSD 7.1-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD squish.rachie.is-a-geek.net 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #5: Sat Sep 13 02:44:01 AKDT 2008 root@squish.rachie.is-a-geek.net:/data/obj/data/RELENG_7/src/sys/GENERIC-PF i386


	
>Description:
The archive_write_callback uses const void *buff (like write(2)), but the
manpage displays void *buff.

>How-To-Repeat:
man archive_write

>Fix:
--- archive_write.3.patch begins here ---
Index: archive_write.3
===================================================================
RCS file: /home/ncvs/src/lib/libarchive/archive_write.3,v
retrieving revision 1.24
diff -u -r1.24 archive_write.3
--- archive_write.3	26 May 2008 17:00:23 -0000	1.24
+++ archive_write.3	14 Oct 2008 09:43:46 -0000
@@ -342,7 +342,7 @@
 .Fo archive_write_callback
 .Fa "struct archive *"
 .Fa "void *client_data"
-.Fa "void *buffer"
+.Fa "const void *buffer"
 .Fa "size_t length"
 .Fc
 .El
@@ -410,7 +410,7 @@
 }
 
 ssize_t
-mywrite(struct archive *a, void *client_data, void *buff, size_t n)
+mywrite(struct archive *a, void *client_data, const void *buff, size_t n)
 {
   struct mydata *mydata = client_data;
 
--- archive_write.3.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081014094952.8CAFA33C1B>