Relax memory requirements on 64bit platforms; fix two memleaks.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user