Use C99 for loop initializers.

That means that a C99 compiler is now mandatory.
This commit is contained in:
Juan RP
2013-09-15 10:06:49 +02:00
parent 9a9c816552
commit 4057e4961c
32 changed files with 105 additions and 138 deletions

View File

@ -216,7 +216,6 @@ generate_full_revdeps_tree(struct xbps_handle *xhp)
xbps_object_iterator_t iter;
const char *pkgver, *pkgdep, *vpkgname;
char *curpkgname;
unsigned int i;
bool alloc;
if (xhp->pkgdb_revdeps)
@ -233,7 +232,7 @@ generate_full_revdeps_tree(struct xbps_handle *xhp)
if (!xbps_array_count(rundeps))
continue;
for (i = 0; i < xbps_array_count(rundeps); i++) {
for (unsigned int i = 0; i < xbps_array_count(rundeps); i++) {
alloc = false;
xbps_array_get_cstring_nocopy(rundeps, i, &pkgdep);
curpkgname = xbps_pkgpattern_name(pkgdep);