From: Mark Adler Date: Mon, 21 Aug 2023 20:43:46 +0000 (-0700) Subject: Correct comment in zlib.h on os setting in gzip header. X-Git-Tag: 2.1.4~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bef206e2cfce57ed3e923ecbc1c2209af89dd73;p=thirdparty%2Fzlib-ng.git Correct comment in zlib.h on os setting in gzip header. 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. --- diff --git a/zlib-ng.h.in b/zlib-ng.h.in index 353f0f44c..5d8f0a90a 100644 --- a/zlib-ng.h.in +++ b/zlib-ng.h.in @@ -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. diff --git a/zlib.h.in b/zlib.h.in index 4367c1c4b..ad58e2110 100644 --- 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.