From b929e74f2ebc1b7102d57cd22a5e986cead5bd4b Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 11 May 2014 21:30:31 +0200 Subject: util: Use off_t instead of int for size values Old output: > Total Installed Size: -1527.44 MiB Fixed: > Total Installed Size: 2568.56 MiB Bug introduced in 7b8f8753b15037bf4a88126ffde8195416432c72. Signed-off-by: Florian Pritz Signed-off-by: Allan McRae --- src/pacman/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/pacman/util.c b/src/pacman/util.c index ec2d3d2b..ebf15dbd 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -433,7 +433,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; -- cgit v1.2.3-54-g00ecf