summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2024-06-30 05:13:39 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2024-06-30 05:13:39 +0000
commit6bc19abe996ab2f1fe640269ff0ed4926c3b8de9 (patch)
treee4845cf985853452e5e24829fed82f376a0023fc
parent53e4953e0d398b69e34f346a1f32a2c0eee73594 (diff)
Z_HUFFMAN -> Z_HUFFMAN_ONLY + linewrapping churn in a comment
from upstream 0f3b7b9595cc7d85c3b13282e71fcecef7f18f9c
-rw-r--r--lib/libz/zlib.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libz/zlib.h b/lib/libz/zlib.h
index 592d453f5fc..5498b542064 100644
--- a/lib/libz/zlib.h
+++ b/lib/libz/zlib.h
@@ -597,11 +597,11 @@ ZEXTERN int ZEXPORT deflateInit2(z_streamp strm,
Z_RLE is almost as fast as Z_HUFFMAN_ONLY, but should give better
compression for PNG image data than Huffman only. The degree of string
matching from most to none is: Z_DEFAULT_STRATEGY, Z_FILTERED, Z_RLE, then
- Z_HUFFMAN. The strategy parameter affects the compression ratio but never
- the correctness of the compressed output, even if it is not set optimally
- for the given data. Z_FIXED uses the default string matching, but prevents
- the use of dynamic Huffman codes, allowing for a simpler decoder for special
- applications.
+ Z_HUFFMAN_ONLY. The strategy parameter affects the compression ratio but
+ never the correctness of the compressed output, even if it is not set
+ optimally for the given data. Z_FIXED uses the default string matching, but
+ prevents the use of dynamic Huffman codes, allowing for a simpler decoder
+ for special applications.
deflateInit2 returns Z_OK if success, Z_MEM_ERROR if there was not enough
memory, Z_STREAM_ERROR if any parameter is invalid (such as an invalid