diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2015-05-15 09:14:09 +0300 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2015-05-17 16:05:08 +0200 |
commit | 2e0425986fb1b5d4d5b57b2e2b7f5442e9823b0c (patch) | |
tree | 4d3596c9aa875452a319247f92af5db9f8236eb8 /util/cbfstool/partitioned_file.c | |
parent | 2f7e56f2d6b8292258e18e70f0205d9aff097b57 (diff) | |
download | coreboot-2e0425986fb1b5d4d5b57b2e2b7f5442e9823b0c.tar.gz coreboot-2e0425986fb1b5d4d5b57b2e2b7f5442e9823b0c.tar.bz2 coreboot-2e0425986fb1b5d4d5b57b2e2b7f5442e9823b0c.zip |
cbfstool: Fix shadowed global index
Change-Id: Ic8bccea1f2ddef874d8e440fa4fa05de1d4f9550
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/10210
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Marc Jones <marc.jones@se-eng.com>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'util/cbfstool/partitioned_file.c')
-rw-r--r-- | util/cbfstool/partitioned_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/cbfstool/partitioned_file.c b/util/cbfstool/partitioned_file.c index 3f47a26deac8..4e1a8b56ada0 100644 --- a/util/cbfstool/partitioned_file.c +++ b/util/cbfstool/partitioned_file.c @@ -46,8 +46,8 @@ static unsigned count_selected_fmap_entries(const struct fmap *fmap, assert(callback); unsigned count = 0; - for (unsigned index = 0; index < fmap->nareas; ++index) { - if (callback(fmap->areas + index, arg)) + for (unsigned i = 0; i < fmap->nareas; ++i) { + if (callback(fmap->areas + i, arg)) ++count; } return count; |