Use C99 for loop initializers.
That means that a C99 compiler is now mandatory.
This commit is contained in:
@@ -49,7 +49,6 @@ check_pkg_rundeps(struct xbps_handle *xhp, const char *pkgname, void *arg)
|
||||
{
|
||||
xbps_dictionary_t pkg_propsd = arg;
|
||||
xbps_array_t array;
|
||||
unsigned int i;
|
||||
const char *reqpkg;
|
||||
bool test_broken = false;
|
||||
|
||||
@@ -57,7 +56,7 @@ check_pkg_rundeps(struct xbps_handle *xhp, const char *pkgname, void *arg)
|
||||
return 0;
|
||||
|
||||
array = xbps_dictionary_get(pkg_propsd, "run_depends");
|
||||
for (i = 0; i < xbps_array_count(array); i++) {
|
||||
for (unsigned int i = 0; i < xbps_array_count(array); i++) {
|
||||
xbps_array_get_cstring_nocopy(array, i, &reqpkg);
|
||||
if (xbps_pkg_is_installed(xhp, reqpkg) <= 0) {
|
||||
xbps_error_printf("%s: dependency not satisfied: %s\n",
|
||||
|
@@ -77,7 +77,6 @@ check_pkg_symlinks(struct xbps_handle *xhp, const char *pkgname, void *arg)
|
||||
xbps_array_t array;
|
||||
xbps_object_t obj;
|
||||
xbps_dictionary_t filesd = arg;
|
||||
unsigned int i;
|
||||
const char *file, *tgt = NULL;
|
||||
char *path, *p, *buf, *buf2, *lnk, *dname, *tgt_path;
|
||||
int rv;
|
||||
@@ -87,7 +86,7 @@ check_pkg_symlinks(struct xbps_handle *xhp, const char *pkgname, void *arg)
|
||||
if (array == NULL)
|
||||
return false;
|
||||
|
||||
for (i = 0; i < xbps_array_count(array); i++) {
|
||||
for (unsigned int i = 0; i < xbps_array_count(array); i++) {
|
||||
obj = xbps_array_get(array, i);
|
||||
if (!xbps_dictionary_get_cstring_nocopy(obj, "target", &tgt)) {
|
||||
xbps_warn_printf("%s: `%s' symlink with "
|
||||
|
@@ -46,7 +46,6 @@ pkgdb_format_021(struct xbps_handle *xhp, const char *plist_new)
|
||||
{
|
||||
xbps_array_t array, rdeps;
|
||||
xbps_dictionary_t pkgdb, pkgd;
|
||||
unsigned int i;
|
||||
char *pkgname, *plist;
|
||||
|
||||
plist = xbps_xasprintf("%s/pkgdb.plist", xhp->metadir);
|
||||
@@ -71,7 +70,7 @@ pkgdb_format_021(struct xbps_handle *xhp, const char *plist_new)
|
||||
pkgdb = xbps_dictionary_create();
|
||||
assert(pkgdb);
|
||||
|
||||
for (i = 0; i < xbps_array_count(array); i++) {
|
||||
for (unsigned int i = 0; i < xbps_array_count(array); i++) {
|
||||
pkgd = xbps_array_get(array, i);
|
||||
xbps_dictionary_get_cstring(pkgd, "pkgname", &pkgname);
|
||||
rdeps = xbps_dictionary_get(pkgd, "run_depends");
|
||||
|
Reference in New Issue
Block a user