diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-10-01 15:15:11 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-10-01 15:15:11 +0100 |
commit | a8c9abd046add08c8ac8f91c3c12d5c823fb44e3 (patch) | |
tree | 6ed54d8c8226d15d2c314818f9fa008f8d0fb2c6 /test | |
parent | 9ae0493f954ac0186541aa567b55adbb436b33db (diff) | |
download | rspamd-a8c9abd046add08c8ac8f91c3c12d5c823fb44e3.tar.gz rspamd-a8c9abd046add08c8ac8f91c3c12d5c823fb44e3.zip |
Rework fuzzy storage radix.
Diffstat (limited to 'test')
-rw-r--r-- | test/rspamd_radix_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/rspamd_radix_test.c b/test/rspamd_radix_test.c index 68f5fcc71..f4eda1123 100644 --- a/test/rspamd_radix_test.c +++ b/test/rspamd_radix_test.c @@ -78,7 +78,7 @@ struct _tv { static void rspamd_radix_text_vec (void) { - radix_compressed_t *tree = radix_tree_create_compressed (); + radix_compressed_t *tree = radix_create_compressed (); struct _tv *t = &test_vec[0]; struct in_addr ina; struct in6_addr in6a; @@ -134,14 +134,14 @@ rspamd_radix_text_vec (void) t ++; } - radix_tree_destroy_compressed (tree); + radix_destroy_compressed (tree); } void rspamd_radix_test_func (void) { radix_tree_t *tree = radix_tree_create (); - radix_compressed_t *comp_tree = radix_tree_create_compressed (); + radix_compressed_t *comp_tree = radix_create_compressed (); struct { guint32 addr; guint32 mask; @@ -245,7 +245,7 @@ rspamd_radix_test_func (void) (ts2.tv_nsec - ts1.tv_nsec) / 1000000.; /* Nanoseconds */ msg_info ("Checked %z elements in %.6f ms", nelts, diff); - radix_tree_destroy_compressed (comp_tree); + radix_destroy_compressed (comp_tree); g_free (addrs); } |