From 8abbde02d46830168b79a1df6c18c3ffaea49b9e Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 8 May 2000 19:11:49 +0000 Subject: Several simplifications of the fib iterators. --- nest/route.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'nest/route.h') diff --git a/nest/route.h b/nest/route.h index 66a32ed9..d15ffae6 100644 --- a/nest/route.h +++ b/nest/route.h @@ -86,12 +86,13 @@ void fit_put(struct fib_iterator *, struct fib_node *); unsigned int count = (fib)->hash_size; \ unsigned int hpos = (it)->hash; \ for(;;) { \ - fis_again: if (!z) { \ - if (++hpos >= count) \ - break; \ - z = (fib)->hash_table[hpos]; \ - goto fis_again; \ - } + if (!z) \ + { \ + if (++hpos >= count) \ + break; \ + z = (fib)->hash_table[hpos]; \ + continue; \ + } #define FIB_ITERATE_END(z) z = z->next; } } while(0) -- cgit v1.2.3