diff options
author | Martin Mares <mj@ucw.cz> | 1999-02-13 19:13:51 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1999-02-13 19:13:51 +0000 |
commit | 2569bc40731081ac70ee328a7df37109399b53c6 (patch) | |
tree | f5438940c544430d9bc079aadaf32c4adfebbc36 /nest/route.h | |
parent | 4e9498cbb171d52e2f3015d3e9d6c7b1b7205e27 (diff) |
Fixed bug in FIB_ITERATE_END: it assumed the control variable is named
"z". I've added an argument specifying name of the variable.
Renamed "again" label in FIB_ITERATE_* to "fis_again" to avoid name
clashes.
Diffstat (limited to 'nest/route.h')
-rw-r--r-- | nest/route.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nest/route.h b/nest/route.h index da0f1cd2..916a704b 100644 --- a/nest/route.h +++ b/nest/route.h @@ -82,14 +82,14 @@ void fit_put(struct fib_iterator *, struct fib_node *); unsigned int count = (fib)->hash_size; \ unsigned int hpos = (it)->hash; \ for(;;) { \ - again: if (!z) { \ + fis_again: if (!z) { \ if (++hpos >= count) \ break; \ z = (fib)->hash_table[hpos]; \ - goto again; \ + goto fis_again; \ } -#define FIB_ITERATE_END z = z->next; } } while(0) +#define FIB_ITERATE_END(z) z = z->next; } } while(0) #define FIB_ITERATE_PUT(it, z) fit_put(it, z) @@ -160,6 +160,7 @@ void rte_free(rte *); void rt_dump(rtable *); void rt_dump_all(void); void rt_feed_baby(struct proto *p); +void rt_prune(rtable *tab); /* * Route Attributes |