Empty objects handling: explicit deny-any instead of implicit accept-any.

This commit is contained in:
Alexandre Snarskii
2014-07-31 16:00:08 +04:00
parent f23c88700b
commit fe96b511ca
7 changed files with 74 additions and 23 deletions

View File

@@ -189,6 +189,12 @@ sx_radix_tree_new(int af)
return rt;
};
int
sx_radix_tree_empty(struct sx_radix_tree* t)
{
return t->head == NULL;
};
struct sx_radix_node*
sx_radix_node_new(struct sx_prefix* prefix)
{