summaryrefslogtreecommitdiff
path: root/test/example.c
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@solidstatenetworks.com>2021-07-11 16:58:48 -0700
committerHans Kristian Rosbach <hk-github@circlestorm.org>2021-09-22 16:14:05 +0200
commit983df0adec3fb04bc47f051e479fb6490f5da3d9 (patch)
treed7420e2ab734bf42cdd79fd4074788237ea8f74c /test/example.c
parent454bbf3e88fc3d5902ab298fc788258838dbe62d (diff)
downloadProject-Tick-983df0adec3fb04bc47f051e479fb6490f5da3d9.tar.gz
Project-Tick-983df0adec3fb04bc47f051e479fb6490f5da3d9.zip
Call deflateBound to calculate length with custom gzip header in example.
Diffstat (limited to 'test/example.c')
-rw-r--r--test/example.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/example.c b/test/example.c
index 151e814b7e..9f1f52a940 100644
--- a/test/example.c
+++ b/test/example.c
@@ -934,6 +934,7 @@ void test_deflate_set_header(unsigned char *compr, size_t comprLen) {
if (err == Z_OK) {
printf("deflateSetHeader(): OK\n");
}
+ PREFIX(deflateBound)(&c_stream, (unsigned long)comprLen);
c_stream.next_in = (unsigned char *)hello;
c_stream.next_out = compr;