summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-05-18 03:10:22 +0000
committerLaurent Bercot <ska@appnovation.com>2023-05-18 03:10:22 +0000
commit204d73b14f631e994668a8fd581204af268d35c8 (patch)
tree92fb24ffbad2e65e8eabdea14f2067d7f5b247b0
parent2af587d68d11b1826c356364b4e9679199eee2ed (diff)
downloadskalibs-204d73b14f631e994668a8fd581204af268d35c8.tar.xz
More avltree macro fixes
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--src/include/skalibs/avltree.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/skalibs/avltree.h b/src/include/skalibs/avltree.h
index 11f1f23..d6c767a 100644
--- a/src/include/skalibs/avltree.h
+++ b/src/include/skalibs/avltree.h
@@ -51,8 +51,8 @@ extern int avltree_insert (avltree *, uint32_t) ;
extern int avltree_delete (avltree *, void const *) ;
-#define avltree_iter_nocancel(t, cut, f, p) avlnode_iter(avltree_nodes(t), avltree_totalsize(t), cut, avltree_root(t), f, p)
-#define avltree_iter(t, f, p) avltree_iter_nocancel(t, avltree_totalsize(t), f, p)
+#define avltree_iter_nocancel(t, cut, f, p) avlnode_iter_nocancel(avltree_nodes(t), avltree_totalsize(t), cut, avltree_root(t), f, p)
+#define avltree_iter(t, f, p) avlnode_iter(t, avltree_totalsize(t), avltree_root(t), f, p)
#define avltree_iter_withcancel(t, f, cancelf, p) avlnode_iter_withcancel(avltree_nodes(t), avltree_totalsize(t), avltree_root(t), f, cancelf, p)
#endif