list_compat.h: remove list_add_head()
[project/libubox.git] / avl.c
diff --git a/avl.c b/avl.c
index 91b2bb87ac7f18f9be55791904a2b3ef5701e82d..545fd2a5269248bba176e0581ec195089c4df019 100644 (file)
--- a/avl.c
+++ b/avl.c
@@ -225,7 +225,7 @@ avl_insert(struct avl_tree *tree, struct avl_node *new)
   new->leader = true;
 
   if (tree->root == NULL) {
-    list_add_head(&tree->list_head, &new->list);
+    list_add(&new->list, &tree->list_head);
     tree->root = new;
     tree->count = 1;
     return 0;