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.
cute-signatures
Natanael Copa 2009-06-30 09:43:58 +00:00
parent 9858ffff69
commit d313c5e3cb
1 changed files with 2 additions and 2 deletions

View File

@ -257,9 +257,9 @@ static void info_print_url(struct apk_package *pkg)
static void info_print_size(struct apk_package *pkg) static void info_print_size(struct apk_package *pkg)
{ {
if (apk_verbosity > 1) if (apk_verbosity > 1)
printf("%s: %i", pkg->name->name, pkg->installed_size); printf("%s: %zu", pkg->name->name, pkg->installed_size);
else 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); pkg->installed_size);
} }