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.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-03-21 01:56:31 +0400
committerFelix Fietkau <nbd@openwrt.org>2014-03-21 01:56:45 +0400
commitd1e59653fa6c7599320155ca7acb92f457f60fa6 (patch)
tree9b84e7ec74efcdcd2b4c32142295bd456f0904c2 /avl.h
parentbbdfee8182c5c8d3704f343c6402bd68dd05071e (diff)
list_compat.h: remove list_init_head()
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'avl.h')
-rw-r--r--avl.h2
1 files changed, 1 insertions, 1 deletions
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--)