Use %ju to printf uint64_t's. Fixes building on i386.

--HG--
extra : convert_revision : c910dcedf00a095ebbe001cb78d7f8fa2ef19035
This commit is contained in:
Juan RP 2008-12-22 15:21:29 +01:00
parent fa793a5044
commit 546cc0ccc1
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ typedef struct repository_info {
const char *index_version;
const char *location_local;
const char *location_remote;
size_t total_pkgs;
uint64_t total_pkgs;
} repo_info_t;
static const char *sanitize_localpath(const char *);
@ -207,7 +207,7 @@ main(int argc, char **argv)
exit(EINVAL);
}
printf("Added repository at %s (%s) with %zu packages.\n",
printf("Added repository at %s (%s) with %ju packages.\n",
rinfo->location_local, rinfo->index_version,
rinfo->total_pkgs);
free(rinfo);

View File

@ -391,7 +391,7 @@ xbps_show_pkg_info(prop_dictionary_t dict)
(int64_t)prop_number_unsigned_integer_value(obj),
"", HN_AUTOSCALE, HN_NOSPACE);
if (rv == -1)
printf("%zu\n",
printf("%ju\n",
prop_number_unsigned_integer_value(obj));
else
printf("%s\n", size);