From 656190b0a063686b9bd675bbffe43fbebf4aacab Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Mon, 17 Jun 2013 17:28:03 +0300 Subject: 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. --- src/archive.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/archive.c') 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 { -- cgit v1.2.3-60-g2f50