list_compat.h: remove list_init_head()
[project/libubox.git] / avl.c
diff --git a/avl.c b/avl.c
index 3efeaf5..91b2bb8 100644 (file)
--- a/avl.c
+++ b/avl.c
@@ -90,7 +90,7 @@ static void avl_remove(struct avl_tree *tree, struct avl_node *node);
 void
 avl_init(struct avl_tree *tree, avl_tree_comp comp, bool allow_dups, void *ptr)
 {
-  list_init_head(&tree->list_head);
+  INIT_LIST_HEAD(&tree->list_head);
   tree->root = NULL;
   tree->count = 0;
   tree->comp = comp;