]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Cleanup: Replace 'voidpc' with 'void const *'
authorHans Kristian Rosbach <hk-git@circlestorm.org>
Sun, 26 Apr 2015 18:37:30 +0000 (20:37 +0200)
committerHans Kristian Rosbach <hk-git@circlestorm.org>
Sun, 26 Apr 2015 18:37:30 +0000 (20:37 +0200)
gzwrite.c
zlib.h

index 9ea702e86aa1603cf6696c4d06848459d1ed2fed..a52aef360135789b959a43a4eae21603c769b045 100644 (file)
--- 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 b6c3911c45651aaaee8aa423003d4361fd190af9..e5499ee7911363e41b127c8985f8ccb54aeda4b9 100644 (file)
--- 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