From 263a9828669594d235dc65a8b61748be5bbacf2b Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Tue, 16 May 2023 20:28:59 -0700 Subject: 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. --- zlib.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zlib.h b/zlib.h index f0c5144..17b71ac 100644 --- a/zlib.h +++ b/zlib.h @@ -821,8 +821,9 @@ ZEXTERN int ZEXPORT deflateSetHeader(z_streamp strm, 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. -- cgit v1.2.3-55-g6feb