svn commit: r184529 - head/lib/libarchive

Tim Kientzle kientzle at FreeBSD.org
Sat Nov 1 12:11:21 PDT 2008


Author: kientzle
Date: Sat Nov  1 19:11:21 2008
New Revision: 184529
URL: http://svn.freebsd.org/changeset/base/184529

Log:
  Correct the documented declaration of the archive_write_callback to
  match the code.
  
  PR:		docs/128089
  Submitted by:	Mel
  MFC after:	3 days

Modified:
  head/lib/libarchive/archive_write.3

Modified: head/lib/libarchive/archive_write.3
==============================================================================
--- head/lib/libarchive/archive_write.3	Sat Nov  1 19:02:05 2008	(r184528)
+++ head/lib/libarchive/archive_write.3	Sat Nov  1 19:11:21 2008	(r184529)
@@ -342,7 +342,7 @@ to register an error code and message an
 .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 @@ myopen(struct archive *a, void *client_d
 }
 
 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;
 


More information about the svn-src-head mailing list