docs/128089: [patch] Incorrect type in archive_write manpage
Mel
mel.xyzzy at rachie.is-a-geek.net
Tue Oct 14 09:50:05 UTC 2008
>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 at 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:
More information about the freebsd-doc
mailing list