list_compat.h: remove list_add_after()
[project/libubox.git] / avl.c
diff --git a/avl.c b/avl.c
index 545fd2a5269248bba176e0581ec195089c4df019..b1769368a483854ab2abeb570d20e5cbc13dc61d 100644 (file)
--- a/avl.c
+++ b/avl.c
@@ -491,7 +491,7 @@ avl_insert_before(struct avl_tree *tree, struct avl_node *pos_node, struct avl_n
 static void
 avl_insert_after(struct avl_tree *tree, struct avl_node *pos_node, struct avl_node *node)
 {
-  list_add_after(&pos_node->list, &node->list);
+  list_add(&node->list, &pos_node->list);
   tree->count++;
 }