From e8db984ce5997ffabafab2584fa7f00789ff3afd Mon Sep 17 00:00:00 2001 From: Thomas Dziedzic Date: Thu, 2 Feb 2012 16:43:40 -0600 Subject: Fix FS#27924: don't display negative zeroes Dan: don't compute lower bound unless needed, flip argument order so out values are last, add param Doxygen documentation. Signed-off-by: Dan McGee --- src/pacman/util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/pacman/util.h') diff --git a/src/pacman/util.h b/src/pacman/util.h index 1b5a3daf..5ccd480a 100644 --- a/src/pacman/util.h +++ b/src/pacman/util.h @@ -59,7 +59,8 @@ char *strtrim(char *str); char *strreplace(const char *str, const char *needle, const char *replace); alpm_list_t *strsplit(const char *str, const char splitchar); void string_display(const char *title, const char *string); -double humanize_size(off_t bytes, const char target_unit, const char **label); +double humanize_size(off_t bytes, const char target_unit, int precision, + const char **label); int table_display(const char *title, const alpm_list_t *header, const alpm_list_t *rows); void list_display(const char *title, const alpm_list_t *list); void list_display_linebreak(const char *title, const alpm_list_t *list); -- cgit v1.2.3-24-g4f1b