Rename loop iterater, so that it doesn't clash with a variable of greater scope.
[oweals/opkg-lede.git] / libopkg / pkg_depends.c
index b28f68d1ce93dcc07052db2c49d606dfb1f629e8..f7f05a16bcef2dcde69bc048664997717935332f 100644 (file)
@@ -125,10 +125,10 @@ int pkg_hash_fetch_unsatisfied_dependencies(opkg_conf_t *conf, pkg_t * pkg,
                                                                                tmp_vec,
                                                                                &newstuff);
                                   if (newstuff == NULL) {
-                                       int i;
+                                       int m;
                                        int ok = 1;
-                                       for (i = 0; i < rc; i++) {
-                                           pkg_t *p = tmp_vec->pkgs[i];
+                                       for (m = 0; m < rc; m++) {
+                                           pkg_t *p = tmp_vec->pkgs[m];
                                            if (p->state_want == SW_INSTALL)
                                                continue;
                                            opkg_message(conf, OPKG_DEBUG, "not installing %s due to requirement for %s\n", pkg_scout->name, p->name);