summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-10-03 09:04:35 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2012-10-03 09:04:35 +0200
commit00958d92070c583e4fa9d01f5010bce12bcd1b40 (patch)
treea8ba5ebaa670a9fcf5e7a3adcdc5798bb1deae7e
parent4b7b5d4668865b1026c7050c8872f256bc773605 (diff)
downloadapk-tools-00958d92070c583e4fa9d01f5010bce12bcd1b40.tar.gz
apk-tools-00958d92070c583e4fa9d01f5010bce12bcd1b40.tar.bz2
apk-tools-00958d92070c583e4fa9d01f5010bce12bcd1b40.tar.xz
apk-tools-00958d92070c583e4fa9d01f5010bce12bcd1b40.zip
solver: fix compile with -Werror on 64bit
-rw-r--r--src/solver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/solver.c b/src/solver.c
index ec44958..f9a2117 100644
--- a/src/solver.c
+++ b/src/solver.c
@@ -1664,7 +1664,7 @@ static void update_progress(struct progress *prog, size_t percent)
draw_progress(percent);
if (prog->progress_fd != 0) {
char buf[8];
- size_t n = snprintf(buf, sizeof(buf), "%d\n", percent);
+ size_t n = snprintf(buf, sizeof(buf), "%zu\n", percent);
write(prog->progress_fd, buf, n);
}
}