[pacman-dev] [PATCH] util: Use off_t instead of int for size values
Florian Pritz
bluewind at xinu.at
Sun May 11 15:30:31 EDT 2014
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 at 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
More information about the pacman-dev
mailing list