zlib/zlib-1.2.2-format.patch
Stephan Kulow a152b35097 Accepting request 92513 from Base:System
- Do not include the codename in soversion. (forwarded request 92512 from elvigia)

OBS-URL: https://build.opensuse.org/request/show/92513
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/zlib?expand=0&rev=42
2011-11-21 11:51:30 +00:00

33 lines
1.2 KiB
Diff

--- zlib.h.orig
+++ zlib.h
@@ -696,7 +696,7 @@ ZEXTERN uLong ZEXPORT deflateBound OF((z
be larger than the value returned by deflateBound() if flush options other
than Z_FINISH or Z_NO_FLUSH are used.
*/
-
+
ZEXTERN int ZEXPORT deflatePending OF((z_streamp strm,
unsigned *pending,
int *bits));
@@ -706,7 +706,7 @@ ZEXTERN int ZEXPORT deflatePending OF((z
provided would be due to the available output space having being consumed.
The number of bits of output not provided are between 0 and 7, where they
await more bits to join them in order to fill out a full byte.
-
+
deflatePending returns Z_OK if success, or Z_STREAM_ERROR if the source
stream state was inconsistent.
*/
@@ -1280,7 +1280,10 @@ ZEXTERN int ZEXPORT gzwrite OF((gzFile f
error.
*/
-ZEXTERN int ZEXPORTVA gzprintf ON((gzFile file, const char *format, ...));
+ZEXTERN
+__attribute__((__format__(__printf__,2,3)))
+int ZEXPORTVA gzprintf ON((gzFile file, const char *format, ...));
+
/*
Converts, formats, and writes the arguments to the compressed file under
control of the format string, as in fprintf. gzprintf returns the number of