diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2009-08-27 19:01:04 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2009-08-27 19:01:04 +0200 |
commit | 05198c12f48c9d4a65ee6d1d4117bd8067a71131 (patch) | |
tree | 1e2ad34f41df5cec921ea7f4757a4ce3012aa34f /filter/trie.c | |
parent | 949bd34e81ee99370decdabefa51c9c11ffe915b (diff) | |
download | bird-05198c12f48c9d4a65ee6d1d4117bd8067a71131.tar bird-05198c12f48c9d4a65ee6d1d4117bd8067a71131.zip |
Some cleanups.
Diffstat (limited to 'filter/trie.c')
-rw-r--r-- | filter/trie.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/trie.c b/filter/trie.c index ffb9b99..fb405de 100644 --- a/filter/trie.c +++ b/filter/trie.c @@ -70,6 +70,7 @@ */ #include "nest/bird.h" +#include "lib/string.h" #include "conf/conf.h" #include "filter/filter.h" @@ -177,7 +178,6 @@ trie_add_prefix(struct f_trie *t, struct f_prefix *px) { int l, h; int plen = px->len & LEN_MASK; - ip_addr pmask = ipa_mkmask(plen); /* 'l' and 'h' are lower and upper bounds on accepted prefix lengths, both inclusive. 0 <= l, h <= 32 */ @@ -272,7 +272,7 @@ static int trie_node_print(struct f_trie_node *t, char *buf, int blen) { if (t == NULL) - return; + return 0; int old_blen = blen; int wb = 0; // bsnprintf(buf, blen, "%I/%d accept %I\n", t->addr, t->plen, t->accept); |