Use %ju to printf uint64_t's. Fixes building on i386.
--HG-- extra : convert_revision : c910dcedf00a095ebbe001cb78d7f8fa2ef19035
This commit is contained in:
parent
fa793a5044
commit
546cc0ccc1
|
@ -37,7 +37,7 @@ typedef struct repository_info {
|
||||||
const char *index_version;
|
const char *index_version;
|
||||||
const char *location_local;
|
const char *location_local;
|
||||||
const char *location_remote;
|
const char *location_remote;
|
||||||
size_t total_pkgs;
|
uint64_t total_pkgs;
|
||||||
} repo_info_t;
|
} repo_info_t;
|
||||||
|
|
||||||
static const char *sanitize_localpath(const char *);
|
static const char *sanitize_localpath(const char *);
|
||||||
|
@ -207,7 +207,7 @@ main(int argc, char **argv)
|
||||||
exit(EINVAL);
|
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->location_local, rinfo->index_version,
|
||||||
rinfo->total_pkgs);
|
rinfo->total_pkgs);
|
||||||
free(rinfo);
|
free(rinfo);
|
||||||
|
|
|
@ -391,7 +391,7 @@ xbps_show_pkg_info(prop_dictionary_t dict)
|
||||||
(int64_t)prop_number_unsigned_integer_value(obj),
|
(int64_t)prop_number_unsigned_integer_value(obj),
|
||||||
"", HN_AUTOSCALE, HN_NOSPACE);
|
"", HN_AUTOSCALE, HN_NOSPACE);
|
||||||
if (rv == -1)
|
if (rv == -1)
|
||||||
printf("%zu\n",
|
printf("%ju\n",
|
||||||
prop_number_unsigned_integer_value(obj));
|
prop_number_unsigned_integer_value(obj));
|
||||||
else
|
else
|
||||||
printf("%s\n", size);
|
printf("%s\n", size);
|
||||||
|
|
Loading…
Reference in New Issue