From 17a0d069aacb7b690e802de46ceb5d66d4bdba1d Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 18 Aug 2022 11:40:21 +0930 Subject: [PATCH] rune: avoid shadowing var in test/run.c Signed-off-by: Rusty Russell --- ccan/rune/test/run.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ccan/rune/test/run.c b/ccan/rune/test/run.c index 86737b86..e5326552 100644 --- a/ccan/rune/test/run.c +++ b/ccan/rune/test/run.c @@ -83,12 +83,12 @@ int main(void) ok1(rune_is_derived_anyversion(rune1, rune2) == NULL); restr = rune_restr_new(NULL); - for (size_t i = 4; parts[i]; i+=3) { + for (size_t j = 4; parts[j]; j+=3) { struct rune_altern *alt; alt = rune_altern_new(NULL, - parts[i], - parts[i+1][0], - parts[i+2]); + parts[j], + parts[j+1][0], + parts[j+2]); rune_restr_add_altern(restr, take(alt)); } rune_add_restr(rune1, take(restr)); -- 2.39.5