summaryrefslogtreecommitdiff
path: root/src/print.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-06-19 08:07:37 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2013-06-19 08:07:37 +0200
commit0e9d67aea8137bf00c2082395d2605b7a1a028c0 (patch)
tree03ca3a65e1a66d8d53d9cbbce5649e93b3c59939 /src/print.c
parent8c425a1e33713a2fcb17adada189db17d0e89392 (diff)
downloadapk-tools-0e9d67aea8137bf00c2082395d2605b7a1a028c0.tar.gz
apk-tools-0e9d67aea8137bf00c2082395d2605b7a1a028c0.tar.bz2
apk-tools-0e9d67aea8137bf00c2082395d2605b7a1a028c0.tar.xz
apk-tools-0e9d67aea8137bf00c2082395d2605b7a1a028c0.zip
print: percent arg for process_fd is integer
With commit 0a131418899436b58a163978176d99c08cbddb0c the percent variable became an integer instead of size_t. We fix the format modifier accordingly.
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print.c b/src/print.c
index df53be8..d83bad2 100644
--- a/src/print.c
+++ b/src/print.c
@@ -67,7 +67,7 @@ void apk_print_progress(int percent_flags)
}
if (apk_progress_fd != 0) {
- i = snprintf(buf, sizeof(buf), "%zu\n", percent);
+ i = snprintf(buf, sizeof(buf), "%i\n", percent);
write(apk_progress_fd, buf, i);
}
}