pacman/query.c: avoid variable redeclaration

We were using i as the loop variable in both the inner and outer loop.
Use j in the inner loop instead for clarity.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2011-08-11 19:26:20 -05:00
parent 450bcb5d7b
commit c9cc2332cf
1 changed files with 3 additions and 3 deletions

View File

@ -193,10 +193,10 @@ static int query_fileowner(alpm_list_t *targets)
for(i = alpm_db_get_pkgcache(db_local); i && !found; i = alpm_list_next(i)) {
alpm_pkg_t *info = alpm_list_getdata(i);
alpm_filelist_t *filelist = alpm_pkg_get_files(info);
size_t i;
size_t j;
for(i = 0; i < filelist->count; i++) {
const alpm_file_t *file = filelist->files + i;
for(j = 0; j < filelist->count; j++) {
const alpm_file_t *file = filelist->files + j;
char *ppath, *pdname;
const char *pkgfile = file->name;