aboutsummaryrefslogtreecommitdiffstats
path: root/main/apk-tools/0004-solver-fix-compile-with-Werror-on-64bit.patch
blob: 74043d60e72a251541a2703ef093d6e2610506c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 00958d92070c583e4fa9d01f5010bce12bcd1b40 Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Wed, 3 Oct 2012 09:04:35 +0200
Subject: [PATCH] solver: fix compile with -Werror on 64bit

---
 src/solver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 	}
 }
-- 
1.7.12.2