From: Hans Kristian Rosbach Date: Sun, 26 Apr 2015 18:37:30 +0000 (+0200) Subject: Cleanup: Replace 'voidpc' with 'void const *' X-Git-Tag: 1.9.9-b1~876 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4e0118002f5fefcc1f0c913c38025e40203c012;p=thirdparty%2Fzlib-ng.git Cleanup: Replace 'voidpc' with 'void const *' --- diff --git a/gzwrite.c b/gzwrite.c index 9ea702e86..a52aef360 100644 --- a/gzwrite.c +++ b/gzwrite.c @@ -159,7 +159,7 @@ local int gz_zero(gz_statep state, z_off64_t len) /* -- see zlib.h -- */ int ZEXPORT gzwrite(file, buf, len) gzFile file; - voidpc buf; + void const *buf; unsigned len; { unsigned put = len; diff --git a/zlib.h b/zlib.h index b6c3911c4..e5499ee79 100644 --- a/zlib.h +++ b/zlib.h @@ -1336,8 +1336,7 @@ ZEXTERN int ZEXPORT gzread (gzFile file, voidp buf, unsigned len); len for end of file, or -1 for error. */ -ZEXTERN int ZEXPORT gzwrite (gzFile file, - voidpc buf, unsigned len); +ZEXTERN int ZEXPORT gzwrite (gzFile file, void const *buf, unsigned len); /* Writes the given number of uncompressed bytes into the compressed file. gzwrite returns the number of uncompressed bytes written or 0 in case of