summaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
Diffstat (limited to 'filter')
-rw-r--r--filter/filter.h1
-rw-r--r--filter/trie.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/filter/filter.h b/filter/filter.h
index 2277f51..8e0d179 100644
--- a/filter/filter.h
+++ b/filter/filter.h
@@ -86,6 +86,7 @@ int filter_same(struct filter *new, struct filter *old);
int i_same(struct f_inst *f1, struct f_inst *f2);
+void f_prefix_get_bounds(struct f_prefix *px, int *l, int *h);
int val_compare(struct f_val v1, struct f_val v2);
void val_print(struct f_val v);
diff --git a/filter/trie.c b/filter/trie.c
index ffb9b99..2257c8b 100644
--- a/filter/trie.c
+++ b/filter/trie.c
@@ -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);