initial import
[patches.git] / zziplib-read-void.patch
1 Index: zzip/file.c
2 ===================================================================
3 RCS file: /cvsroot/zziplib/zzip-0/zzip/file.c,v
4 retrieving revision 1.8
5 diff -u -p -r1.8 file.c
6 --- zzip/file.c 22 Sep 2006 00:33:23 -0000 1.8
7 +++ zzip/file.c 20 Jan 2007 12:23:09 -0000
8 @@ -339,7 +339,7 @@ zzip_close(ZZIP_FILE* fp)
9 * a smaller buffer.
10 */
11 zzip_ssize_t
12 -zzip_file_read(ZZIP_FILE * fp, char * buf, zzip_size_t len)
13 +zzip_file_read(ZZIP_FILE * fp, void * buf, zzip_size_t len)
14 {
15 ZZIP_DIR * dir;
16 zzip_size_t l;
17 @@ -429,7 +429,7 @@ zzip_file_read(ZZIP_FILE * fp, char * bu
18 * to decompress the data stream and any error is mapped to => errno(3).
19 */
20 zzip_ssize_t
21 -zzip_read(ZZIP_FILE * fp, char * buf, zzip_size_t len)
22 +zzip_read(ZZIP_FILE * fp, void * buf, zzip_size_t len)
23 {
24 if (! fp) return 0;
25 if (! fp->dir)
26 Index: zzip/zzip.h
27 ===================================================================
28 RCS file: /cvsroot/zziplib/zzip-0/zzip/zzip.h,v
29 retrieving revision 1.6
30 diff -u -p -r1.6 zzip.h
31 --- zzip/zzip.h 18 Sep 2006 02:07:15 -0000 1.6
32 +++ zzip/zzip.h 20 Jan 2007 12:23:09 -0000
33 @@ -176,14 +176,14 @@ ZZIP_FILE * zzip_file_open(ZZIP_DIR * d
34 _zzip_export
35 int zzip_file_close(ZZIP_FILE * fp);
36 _zzip_export
37 -zzip_ssize_t zzip_file_read(ZZIP_FILE * fp, char* buf, zzip_size_t len);
38 +zzip_ssize_t zzip_file_read(ZZIP_FILE * fp, void* buf, zzip_size_t len);
39
40 _zzip_export
41 ZZIP_FILE * zzip_open(zzip_char_t* name, int flags);
42 _zzip_export
43 int zzip_close(ZZIP_FILE * fp);
44 _zzip_export
45 -zzip_ssize_t zzip_read(ZZIP_FILE * fp, char * buf, zzip_size_t len);
46 +zzip_ssize_t zzip_read(ZZIP_FILE * fp, void * buf, zzip_size_t len);
47
48 /*
49 * the stdc variant to open/read/close files. - Take note of the freopen()