]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Correct comment in zlib.h on os setting in gzip header.
authorMark Adler <madler@alumni.caltech.edu>
Mon, 21 Aug 2023 20:43:46 +0000 (13:43 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 24 Aug 2023 09:22:33 +0000 (11:22 +0200)
The comment said that the os is set to 255, when in fact it has
been set to the current os since zlib 1.2.3. Or at least our best
guess at the os made at compile time.

zlib-ng.h.in
zlib.h.in

index 353f0f44cbce58f7f09d8a1f6bb498ab7dd0eaa6..5d8f0a90a6023cf545816917cb14030d58465466 100644 (file)
@@ -807,8 +807,9 @@ int32_t zng_deflateSetHeader(zng_stream *strm, zng_gz_headerp head);
    gzip file" and give up.
 
      If deflateSetHeader is not used, the default gzip header has text false,
-   the time set to zero, and os set to 255, with no extra, name, or comment
-   fields.  The gzip header is returned to the default state by deflateReset().
+   the time set to zero, and os set to the current operating system, with no
+   extra, name, or comment fields.  The gzip header is returned to the default
+   state by deflateReset().
 
      deflateSetHeader returns Z_OK if success, or Z_STREAM_ERROR if the source
    stream state was inconsistent.
index 4367c1c4be1f01a3a551c08324d738272a7ed249..ad58e21102b3c845965a2c862e08577cc614501b 100644 (file)
--- a/zlib.h.in
+++ b/zlib.h.in
@@ -816,8 +816,9 @@ Z_EXTERN int Z_EXPORT deflateSetHeader(z_stream *strm, gz_headerp head);
    gzip file" and give up.
 
      If deflateSetHeader is not used, the default gzip header has text false,
-   the time set to zero, and os set to 255, with no extra, name, or comment
-   fields.  The gzip header is returned to the default state by deflateReset().
+   the time set to zero, and os set to the current operating system, with no
+   extra, name, or comment fields.  The gzip header is returned to the default
+   state by deflateReset().
 
      deflateSetHeader returns Z_OK if success, or Z_STREAM_ERROR if the source
    stream state was inconsistent.