[pacman-dev] [PATCH] util: Use off_t instead of int for size values
11 May
2014
11 May
'14
7:30 p.m.
Old output:
Total Installed Size: -1527.44 MiB
Fixed:
Total Installed Size: 2568.56 MiB
Bug introduced in 7b8f8753b15037bf4a88126ffde8195416432c72. Signed-off-by: Florian Pritz <bluewind@xinu.at> --- src/pacman/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pacman/util.c b/src/pacman/util.c index d42e27b..03e5a21 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -432,7 +432,7 @@ static void table_free(alpm_list_t *headers, alpm_list_t *rows) alpm_list_free(rows); } -static void add_transaction_sizes_row(alpm_list_t **rows, char *label, int size) +static void add_transaction_sizes_row(alpm_list_t **rows, char *label, off_t size) { alpm_list_t *row = NULL; char *str; -- 1.9.2
3866
Age (days ago)
3877
Last active (days ago)
1 comments
2 participants
participants (2)
-
Allan McRae
-
Florian Pritz