Relax memory requirements on 64bit platforms; fix two memleaks.

This commit is contained in:
Juan RP
2013-06-12 10:04:10 +02:00
parent 6a9e394a60
commit db1efb3aa6
33 changed files with 83 additions and 74 deletions

View File

@ -193,7 +193,7 @@ xbps_transaction_update_packages(struct xbps_handle *xhp)
char *pkgname;
bool foundhold = false, newpkg_found = false;
int rv = 0;
size_t x;
unsigned int x;
if ((rv = xbps_pkgdb_init(xhp)) != 0)
return rv;
@ -273,7 +273,7 @@ xbps_transaction_remove_pkg(struct xbps_handle *xhp,
prop_array_t unsorted, orphans, orphans_pkg, reqby;
prop_object_t obj;
const char *pkgver;
size_t count;
unsigned int count;
int rv = 0;
assert(pkgname != NULL);
@ -351,7 +351,7 @@ xbps_transaction_autoremove_pkgs(struct xbps_handle *xhp)
prop_array_t orphans, unsorted;
prop_object_t obj;
const char *pkgver;
size_t count;
unsigned int count;
int rv = 0;
orphans = xbps_find_pkg_orphans(xhp, NULL);