diff --git a/include/humanize_number.h b/include/humanize_number.h index b784da1ad31..8a744785f5c 100644 --- a/include/humanize_number.h +++ b/include/humanize_number.h @@ -38,6 +38,6 @@ #define HN_GETSCALE 0x10 #define HN_AUTOSCALE 0x20 -int humanize_number(char *, size_t, int64_t, const char *, int, int); +int xbps_humanize_number(char *, size_t, int64_t, const char *, int, int); #endif diff --git a/lib/humanize_number.c b/lib/humanize_number.c index 5068cc7a687..676689d28be 100644 --- a/lib/humanize_number.c +++ b/lib/humanize_number.c @@ -40,7 +40,7 @@ #include int -humanize_number(char *buf, size_t len, int64_t bytes, +xbps_humanize_number(char *buf, size_t len, int64_t bytes, const char *suffix, int scale, int flags) { const char *prefixes, *sep; diff --git a/lib/plist.c b/lib/plist.c index a568e0c851c..aa11fbb4068 100644 --- a/lib/plist.c +++ b/lib/plist.c @@ -387,7 +387,7 @@ xbps_show_pkg_info(prop_dictionary_t dict) obj = prop_dictionary_get(dict, "installed_size"); if (obj && prop_object_type(obj) == PROP_TYPE_NUMBER) { printf("Installed size: "); - rv = humanize_number(size, 5, + rv = xbps_humanize_number(size, 5, (int64_t)prop_number_unsigned_integer_value(obj), "", HN_AUTOSCALE, HN_NOSPACE); if (rv == -1)