diff options
author | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-11-19 22:35:58 (EST) |
---|---|---|
committer | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-11-19 22:35:58 (EST) |
commit | 7210f5571f7d93e2e62c80353a2923ee7e64968b (patch) | |
tree | 08acfa4be339ab2d11b3c8fb6aa56ced05c7783c /libopkg | |
parent | da516f8c8ef6bc6275216eb256afa5ab5b94b688 (diff) |
Rename loop iterater, so that it doesn't clash with a variable of greater scope.
git-svn-id: http://opkg.googlecode.com/svn/trunk@344 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg')
-rw-r--r-- | libopkg/pkg_depends.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libopkg/pkg_depends.c b/libopkg/pkg_depends.c index b28f68d..f7f05a1 100644 --- a/libopkg/pkg_depends.c +++ b/libopkg/pkg_depends.c @@ -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); |