You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
proxysql/deps/mariadb-client-library/zutil.c.patch

36 lines
969 B

--- external/zlib/zutil.c.orig 2024-05-22 17:34:00.000000000 +0200
+++ external/zlib/zutil.c 2024-05-22 17:34:00.000000000 +0200
@@ -132,8 +132,7 @@
/* exported to allow conversion of error code to string for compress() and
* uncompress()
*/
-const char * ZEXPORT zError(err)
- int err;
+const char * ZEXPORT zError(int err)
{
return ERR_MSG(err);
}
@@ -304,10 +304,7 @@
extern void free OF((voidpf ptr));
#endif
-voidpf ZLIB_INTERNAL zcalloc(opaque, items, size)
- voidpf opaque;
- unsigned items;
- unsigned size;
+voidpf ZLIB_INTERNAL zcalloc(voidpf opaque, unsigned items, unsigned size)
{
(void)opaque;
return sizeof(uInt) > 2 ? (voidpf)malloc((long) items * size) :
@@ -315,9 +312,7 @@
(voidpf)calloc(items, size);
}
-void ZLIB_INTERNAL zcfree(opaque, ptr)
- voidpf opaque;
- voidpf ptr;
+void ZLIB_INTERNAL zcfree(voidpf opaque, voidpf ptr)
{
(void)opaque;
free(ptr);