2017-01-02 20:04:48 +01:00
|
|
|
From: meissner@suse.de
|
|
|
|
Subject: supply format arguments to gzprintf().
|
|
|
|
|
|
|
|
Index: zlib.h
|
|
|
|
===================================================================
|
|
|
|
--- zlib.h.orig
|
|
|
|
+++ zlib.h
|
2022-08-31 09:52:46 +02:00
|
|
|
@@ -1465,7 +1465,11 @@ ZEXTERN z_size_t ZEXPORT gzfwrite OF((vo
|
2017-01-02 20:04:48 +01:00
|
|
|
is returned, and the error state is set to Z_STREAM_ERROR.
|
|
|
|
*/
|
|
|
|
|
|
|
|
-ZEXTERN int ZEXPORTVA gzprintf Z_ARG((gzFile file, const char *format, ...));
|
|
|
|
+ZEXTERN int ZEXPORTVA gzprintf Z_ARG((gzFile file, const char *format, ...))
|
|
|
|
+#ifdef __GNUC__
|
|
|
|
+ __attribute__((__format__(__printf__,2,3)))
|
|
|
|
+#endif
|
|
|
|
+;
|
|
|
|
/*
|
2022-08-31 09:52:46 +02:00
|
|
|
Convert, format, compress, and write the arguments (...) to file under
|
|
|
|
control of the string format, as in fprintf. gzprintf returns the number of
|