lib/transaction_dictionary.c: fix rootdir free size on 32bit systems.

This commit is contained in:
Juan RP 2014-07-18 12:44:32 +02:00
parent 607f01b2f5
commit 0a7ea3250a

View File

@ -60,13 +60,12 @@ compute_transaction_stats(struct xbps_handle *xhp)
xbps_object_iterator_t iter; xbps_object_iterator_t iter;
xbps_object_t obj; xbps_object_t obj;
struct statvfs svfs; struct statvfs svfs;
unsigned long rootdir_free_size; uint64_t rootdir_free_size, tsize, dlsize, instsize, rmsize;
uint64_t tsize, dlsize, instsize, rmsize;
uint32_t inst_pkgcnt, up_pkgcnt, cf_pkgcnt, rm_pkgcnt, dl_pkgcnt; uint32_t inst_pkgcnt, up_pkgcnt, cf_pkgcnt, rm_pkgcnt, dl_pkgcnt;
const char *tract, *pkgver, *repo; const char *tract, *pkgver, *repo;
inst_pkgcnt = up_pkgcnt = cf_pkgcnt = rm_pkgcnt = dl_pkgcnt = 0; inst_pkgcnt = up_pkgcnt = cf_pkgcnt = rm_pkgcnt = dl_pkgcnt = 0;
tsize = dlsize = instsize = rmsize = 0; rootdir_free_size = tsize = dlsize = instsize = rmsize = 0;
iter = xbps_array_iter_from_dict(xhp->transd, "packages"); iter = xbps_array_iter_from_dict(xhp->transd, "packages");
if (iter == NULL) if (iter == NULL)