summaryrefslogtreecommitdiffstats
path: root/nest/route.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-05-08 21:11:49 +0200
committerMartin Mares <mj@ucw.cz>2000-05-08 21:11:49 +0200
commit8abbde02d46830168b79a1df6c18c3ffaea49b9e (patch)
treee91f6e6a914c523e91a800bd3ed3aa41096579cd /nest/route.h
parent0bcba21e893efb9853a68b04674e4bde9da5a1b8 (diff)
downloadbird-8abbde02d46830168b79a1df6c18c3ffaea49b9e.tar
bird-8abbde02d46830168b79a1df6c18c3ffaea49b9e.zip
Several simplifications of the fib iterators.
Diffstat (limited to 'nest/route.h')
-rw-r--r--nest/route.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/nest/route.h b/nest/route.h
index 66a32ed..d15ffae 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)