diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-06-17 17:28:03 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-06-17 17:28:03 +0300 |
commit | 656190b0a063686b9bd675bbffe43fbebf4aacab (patch) | |
tree | 3f0336fb2080b938fc447ed4c155769be0211fb2 /src/archive.c | |
parent | ade8d0b4e9c206ab67dc8ef2006e8070011aae83 (diff) | |
download | apk-tools-656190b0a063686b9bd675bbffe43fbebf4aacab.tar.gz apk-tools-656190b0a063686b9bd675bbffe43fbebf4aacab.tar.bz2 apk-tools-656190b0a063686b9bd675bbffe43fbebf4aacab.tar.xz apk-tools-656190b0a063686b9bd675bbffe43fbebf4aacab.zip |
io: get rid of APK_PROGRESS_SCALE
no need to muldiv all the time, just pass the current amount of bytes
done, and let callbacks use that directly.
Diffstat (limited to 'src/archive.c')
-rw-r--r-- | src/archive.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/archive.c b/src/archive.c index 1ab7961..8f22f42 100644 --- a/src/archive.c +++ b/src/archive.c @@ -363,8 +363,7 @@ int apk_archive_entry_extract(int atfd, const struct apk_file_info *ae, r = -1; break; } - if (apk_istream_splice(is, fd, ae->size, cb, cb_ctx) - == ae->size) + if (apk_istream_splice(is, fd, ae->size, cb, cb_ctx) == ae->size) r = 0; close(fd); } else { |