diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-07-16 13:47:26 +0300 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-07-16 13:47:26 +0300 |
commit | 0f6d96a4f5a904fd95b96e13715b50befa6a0ee9 (patch) | |
tree | e43022707015019f093c14fd1afd2440d6d75ead /src/apk_io.h | |
parent | 6715a0ba12af54767ba889de07afe3543b7c1543 (diff) | |
download | apk-tools-0f6d96a4f5a904fd95b96e13715b50befa6a0ee9.tar.gz apk-tools-0f6d96a4f5a904fd95b96e13715b50befa6a0ee9.tar.bz2 apk-tools-0f6d96a4f5a904fd95b96e13715b50befa6a0ee9.tar.xz apk-tools-0f6d96a4f5a904fd95b96e13715b50befa6a0ee9.zip |
gzip: always autoclose the inner stream
Diffstat (limited to 'src/apk_io.h')
-rw-r--r-- | src/apk_io.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/apk_io.h b/src/apk_io.h index 1fe4f2c..49d9fcf 100644 --- a/src/apk_io.h +++ b/src/apk_io.h @@ -51,12 +51,11 @@ struct apk_ostream { typedef int (*apk_multipart_cb)(void *ctx, EVP_MD_CTX *mdctx, int part); -struct apk_istream *apk_bstream_gunzip_mpart(struct apk_bstream *, int, +struct apk_istream *apk_bstream_gunzip_mpart(struct apk_bstream *, apk_multipart_cb cb, void *ctx); -static inline struct apk_istream *apk_bstream_gunzip(struct apk_bstream *bs, - int autoclose) +static inline struct apk_istream *apk_bstream_gunzip(struct apk_bstream *bs) { - return apk_bstream_gunzip_mpart(bs, autoclose, NULL, NULL); + return apk_bstream_gunzip_mpart(bs, NULL, NULL); } struct apk_ostream *apk_ostream_gzip(struct apk_ostream *); |