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
diff options
context:
space:
mode:
-rw-r--r--avl.c2
-rw-r--r--avl.h2
-rw-r--r--list_compat.h1
3 files changed, 2 insertions, 3 deletions
diff --git a/avl.c b/avl.c
index 3efeaf5..91b2bb8 100644
--- 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;
diff --git a/avl.h b/avl.h
index 2591de3..8323246 100644
--- a/avl.h
+++ b/avl.h
@@ -534,7 +534,7 @@ __avl_find_element(const struct avl_tree *tree, const void *key, size_t offset,
#define avl_remove_all_elements(tree, element, node_member, ptr) \
for (element = avl_first_element(tree, element, node_member), \
ptr = avl_next_element(element, node_member), \
- list_init_head(&(tree)->list_head), \
+ INIT_LIST_HEAD(&(tree)->list_head), \
(tree)->root = NULL; \
(tree)->count > 0; \
element = ptr, ptr = avl_next_element(ptr, node_member), (tree)->count--)
diff --git a/list_compat.h b/list_compat.h
index bfa12c1..3dd1fd6 100644
--- a/list_compat.h
+++ b/list_compat.h
@@ -17,7 +17,6 @@
#ifndef __LIST_COMPAT_H
#define __LIST_COMPAT_H
-#define list_init_head(_list) INIT_LIST_HEAD(_list)
#define list_add_head(_head, _list) list_add(_list, _head)
#define list_add_after(_after, _list) list_add(_list, _after)
#define list_add_before(_before, _list) list_add_tail(_list, _before)