Kyösti Mälkki (kyosti.malkki@gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10210
-gerrit
commit e4b7be72925c4d4836d90e950f95c28c844087b8 Author: Kyösti Mälkki kyosti.malkki@gmail.com Date: Fri May 15 09:14:09 2015 +0300
cbfstool: Fix shadowed global index
Change-Id: Ic8bccea1f2ddef874d8e440fa4fa05de1d4f9550 Signed-off-by: Kyösti Mälkki kyosti.malkki@gmail.com --- util/cbfstool/partitioned_file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/util/cbfstool/partitioned_file.c b/util/cbfstool/partitioned_file.c index 3f47a26..4e1a8b5 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;