projects
/
oweals
/
libubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5e105b
)
list_compat.h: remove list_remove()
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 20 Mar 2014 22:00:53 +0000
(23:00 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 20 Mar 2014 22:00:53 +0000
(23:00 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
avl.c
patch
|
blob
|
history
list_compat.h
patch
|
blob
|
history
diff --git
a/avl.c
b/avl.c
index f17dab5e354b0c4566ff69022a02cdb2ce20f56e..0dfd903dfdbbfe145f17714a8d385f54dbe0c470 100644
(file)
--- a/
avl.c
+++ b/
avl.c
@@
-498,7
+498,7
@@
avl_insert_after(struct avl_tree *tree, struct avl_node *pos_node, struct avl_no
static void
avl_remove(struct avl_tree *tree, struct avl_node *node)
{
- list_
remove
(&node->list);
+ list_
del
(&node->list);
tree->count--;
}
diff --git
a/list_compat.h
b/list_compat.h
index 93298207f7143db476025b1e3c670b128530efb3..44cfedda1527c210d0ccf20c30fa5d5a8eb3552f 100644
(file)
--- a/
list_compat.h
+++ b/
list_compat.h
@@
-17,7
+17,6
@@
#ifndef __LIST_COMPAT_H
#define __LIST_COMPAT_H
-#define list_remove(_list) list_del(_list)
#define list_is_empty(_list) list_empty(_list)
#define list_next_element(_element, _member) list_entry((_element)->_member.next, typeof(*(_element)), _member)