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

@@ -54,7 +54,7 @@ index_add(struct xbps_handle *xhp, int argc, char **argv, bool force)
const char *oldpkgver, *arch, *oldarch;
char *pkgver, *pkgname, *sha256, *repodir, *buf;
char *tmprepodir;
size_t x;
unsigned int x;
int i, rv, ret = 0;
bool flush = false, found = false;

View File

@@ -143,7 +143,7 @@ index_clean(struct xbps_handle *xhp, const char *repodir)
prop_dictionary_t idx, idxfiles;
const char *keyname;
char *pkgname;
size_t x, pkgcount, slicecount;
unsigned int x, pkgcount, slicecount;
int i, maxthreads, rv = 0;
bool flush = false;

View File

@@ -138,7 +138,7 @@ remove_obsoletes(struct xbps_handle *xhp, const char *repodir)
struct dirent *dp;
char *ext;
int i, maxthreads, rv = 0;
size_t slicecount, pkgcount;
unsigned int slicecount, pkgcount;
repo = xbps_repo_open(xhp, repodir);
if (repo == NULL) {