]> source.dussan.org Git - rspamd.git/commitdiff
Disable old radix completely.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 1 Oct 2014 15:19:43 +0000 (16:19 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 1 Oct 2014 15:19:43 +0000 (16:19 +0100)
src/libutil/radix.h

index 5bf6a1dd801d76dd6f1b6d511e22cbcdd00e49cc..abe2a2899aa375e0d444ba29d62310e594efb6a2 100644 (file)
@@ -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,