summaryrefslogtreecommitdiffstats
path: root/src/gzip.h
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2023-05-02 20:06:51 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2023-05-02 20:06:51 (EDT)
commit1e0e318b510dcd886b303f23f12652b60f1eb5b9 (patch)
treed068dfe4ba2ff42ec8a12298be4526ccf3d48928 /src/gzip.h
parentf15f087cb77d44d8594836b353e5a77b1faeba28 (diff)
gzip: Fix flushing
deflate() apparently must be called with avail_in=0 and Z_FINISH after processing all input, not with Z_FINISH on the last non-empty input buffer.
Diffstat (limited to 'src/gzip.h')
-rw-r--r--src/gzip.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gzip.h b/src/gzip.h
index 437b855..ecf659a 100644
--- a/src/gzip.h
+++ b/src/gzip.h
@@ -66,8 +66,7 @@ int
opkg_opk_gzip_read(struct opkg_opk_gzip *gzip, void *record);
int
-opkg_opk_gzip_write(struct opkg_opk_gzip *gzip, void *record, size_t size,
- int last);
+opkg_opk_gzip_write(struct opkg_opk_gzip *gzip, void *record, size_t size);
/*
* Frees a decompression structure.