summaryrefslogtreecommitdiff
path: root/src/archive.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2008-11-28 16:28:54 +0200
committerTimo Teras <timo.teras@iki.fi>2008-11-28 16:28:54 +0200
commitdc2ffc30e812fc52ad2bf4c11f36a69940f8d1ea (patch)
tree4fc16f961139f7e4b06c33ffdcc7dd7ce81a9567 /src/archive.c
parent4bafa681feb2b902553e26fd88df0f06b0c0778a (diff)
downloadapk-tools-dc2ffc30e812fc52ad2bf4c11f36a69940f8d1ea.tar.gz
apk-tools-dc2ffc30e812fc52ad2bf4c11f36a69940f8d1ea.tar.bz2
apk-tools-dc2ffc30e812fc52ad2bf4c11f36a69940f8d1ea.tar.xz
apk-tools-dc2ffc30e812fc52ad2bf4c11f36a69940f8d1ea.zip
io: apk_ostream stuff
Diffstat (limited to 'src/archive.c')
-rw-r--r--src/archive.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/archive.c b/src/archive.c
index 6562297..201412b 100644
--- a/src/archive.c
+++ b/src/archive.c
@@ -23,10 +23,6 @@
#include "apk_defines.h"
#include "apk_archive.h"
-#ifndef GUNZIP_BINARY
-#define GUNZIP_BINARY "/bin/gunzip"
-#endif
-
struct tar_header {
/* ustar header, Posix 1003.1 */
char name[100]; /* 0-99 */
@@ -182,7 +178,7 @@ int apk_parse_tar(struct apk_istream *is, apk_archive_entry_parser parser,
int apk_parse_tar_gz(struct apk_bstream *bs, apk_archive_entry_parser parser,
void *ctx)
{
- return apk_parse_tar(apk_gunzip_bstream(bs), parser, ctx);
+ return apk_parse_tar(apk_bstream_gunzip(bs), parser, ctx);
}
int apk_archive_entry_extract(const struct apk_file_info *ae,