From d313c5e3cb176ab1256390abb0d09702fd156a51 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 30 Jun 2009 09:43:58 +0000 Subject: info: fix compiler warning on x86_64 printf %i does not work so well with size_t on 64 bit. Use %zu which seems to be portable enough. --- src/info.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/info.c') diff --git a/src/info.c b/src/info.c index 41e8604f4c..60dd9105b2 100644 --- a/src/info.c +++ b/src/info.c @@ -257,9 +257,9 @@ static void info_print_url(struct apk_package *pkg) static void info_print_size(struct apk_package *pkg) { if (apk_verbosity > 1) - printf("%s: %i", pkg->name->name, pkg->installed_size); + printf("%s: %zu", pkg->name->name, pkg->installed_size); else - printf("%s-%s installed size:\n%i\n", pkg->name->name, pkg->version, + printf("%s-%s installed size:\n%zu\n", pkg->name->name, pkg->version, pkg->installed_size); } -- cgit v1.2.3