From 546cc0ccc17b1f27649768582c027d704bd6239d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 22 Dec 2008 15:21:29 +0100 Subject: [PATCH] Use %ju to printf uint64_t's. Fixes building on i386. --HG-- extra : convert_revision : c910dcedf00a095ebbe001cb78d7f8fa2ef19035 --- bin/xbps-bin.c | 4 ++-- lib/plist.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/xbps-bin.c b/bin/xbps-bin.c index 898ac416425..94910278e12 100644 --- a/bin/xbps-bin.c +++ b/bin/xbps-bin.c @@ -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); diff --git a/lib/plist.c b/lib/plist.c index aa11fbb4068..e98fced178f 100644 --- a/lib/plist.c +++ b/lib/plist.c @@ -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);