Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/avl.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-03-21 01:58:21 +0400
committerFelix Fietkau <nbd@openwrt.org>2014-03-21 01:58:21 +0400
commitfdcf117ff3effed9cd0dd9b982a2360dc3abf91e (patch)
tree966650c43bed4f5e4169810a2714bfd4a1da8169 /avl.c
parentd1e59653fa6c7599320155ca7acb92f457f60fa6 (diff)
list_compat.h: remove list_add_head()
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'avl.c')
-rw-r--r--avl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/avl.c b/avl.c
index 91b2bb8..545fd2a 100644
--- 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;