aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-10-01 16:19:43 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-10-01 16:19:43 +0100
commitf6ee41af0fdba6e40b37d817f5f4e9ded2f30c86 (patch)
tree87cb331bbed84444658de958d30d71381fa62da4
parent8bfb30b77a68d2809e30a3b81fc3e7c7aab17312 (diff)
downloadrspamd-f6ee41af0fdba6e40b37d817f5f4e9ded2f30c86.tar.gz
rspamd-f6ee41af0fdba6e40b37d817f5f4e9ded2f30c86.zip
Disable old radix completely.
-rw-r--r--src/libutil/radix.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libutil/radix.h b/src/libutil/radix.h
index 5bf6a1dd8..abe2a2899 100644
--- a/src/libutil/radix.h
+++ b/src/libutil/radix.h
@@ -7,10 +7,12 @@
#define RADIX_NO_VALUE (uintptr_t)-1
-typedef struct radix_node_s radix_node_t;
-typedef struct radix_tree_s radix_tree_t;
+
typedef struct radix_tree_compressed radix_compressed_t;
+#ifdef LEGACY_RADIX
+typedef struct radix_node_s radix_node_t;
+typedef struct radix_tree_s radix_tree_t;
enum radix_insert_type {
RADIX_INSERT,
RADIX_ADD,
@@ -94,6 +96,7 @@ void radix32tree_traverse (radix_tree_t *tree,
* Frees radix tree
*/
void radix_tree_free (radix_tree_t *tree);
+#endif
uintptr_t
radix_insert_compressed (radix_compressed_t * tree,