diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-06-30 09:43:58 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-06-30 09:43:58 +0000 |
commit | d313c5e3cb176ab1256390abb0d09702fd156a51 (patch) | |
tree | f06bef1b206236467b7e43a6585dca2730182e33 /src | |
parent | 9858ffff69ce2e3df353b2c1e65a987c58f32fac (diff) | |
download | apk-tools-d313c5e3cb176ab1256390abb0d09702fd156a51.tar.gz apk-tools-d313c5e3cb176ab1256390abb0d09702fd156a51.tar.bz2 apk-tools-d313c5e3cb176ab1256390abb0d09702fd156a51.tar.xz apk-tools-d313c5e3cb176ab1256390abb0d09702fd156a51.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/info.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |