diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-04-25 15:11:24 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-04-28 17:02:58 (EDT) |
commit | 00693f2324318f196cab57823526d3133fa7a146 (patch) | |
tree | 8c0b22ed564c60e50aa79b245568a7000f04cdf4 /src/opk.c | |
parent | d6813160f258d24681e7da9788618608b7c6cf35 (diff) |
gzip: Add write direction
Diffstat (limited to 'src/opk.c')
-rw-r--r-- | src/opk.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -76,7 +76,8 @@ opkg_opk_opk_init(const char *file_name) } /* Initialize outer gzip decompressor. */ - opk->outer_gzip = opkg_opk_gzip_init(&_opkg_opk_opk_file_read, opk); + opk->outer_gzip = opkg_opk_gzip_init_read(&_opkg_opk_opk_file_read, + opk); if (opk->outer_gzip == NULL) { fputs(_("Error: Failed to initialize\n"), stderr); goto error2; @@ -146,7 +147,7 @@ _opkg_opk_opk_init_inner(struct opkg_opk_opk *opk, const char *member) } /* Initialize inner gzip decompressor. */ - opk->inner_gzip = opkg_opk_gzip_init( + opk->inner_gzip = opkg_opk_gzip_init_read( (opkg_opk_gzip_read_func *) &opkg_opk_ustar_read, opk->outer_ustar); if (opk->inner_gzip == NULL) { |