summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2023-05-16 20:28:59 -0700
committerMark Adler <madler@alumni.caltech.edu>2023-05-16 20:28:59 -0700
commit263a9828669594d235dc65a8b61748be5bbacf2b (patch)
tree38b14b4fa7a86ad9d51b9fe88914c501925a9913
parent48c3741002aca9dae84e9f2288ca149af14c9128 (diff)
downloadzlib-263a9828669594d235dc65a8b61748be5bbacf2b.tar.gz
zlib-263a9828669594d235dc65a8b61748be5bbacf2b.tar.bz2
zlib-263a9828669594d235dc65a8b61748be5bbacf2b.zip
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.
-rw-r--r--zlib.h5
1 files 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,
821 gzip file" and give up. 821 gzip file" and give up.
822 822
823 If deflateSetHeader is not used, the default gzip header has text false, 823 If deflateSetHeader is not used, the default gzip header has text false,
824 the time set to zero, and os set to 255, with no extra, name, or comment 824 the time set to zero, and os set to the current operating system, with no
825 fields. The gzip header is returned to the default state by deflateReset(). 825 extra, name, or comment fields. The gzip header is returned to the default
826 state by deflateReset().
826 827
827 deflateSetHeader returns Z_OK if success, or Z_STREAM_ERROR if the source 828 deflateSetHeader returns Z_OK if success, or Z_STREAM_ERROR if the source
828 stream state was inconsistent. 829 stream state was inconsistent.