avl_strcmp is now part of libubox
authorFelix Fietkau <nbd@openwrt.org>
Sat, 26 May 2012 15:52:19 +0000 (17:52 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 26 May 2012 15:55:58 +0000 (17:55 +0200)
utils.c
utils.h

diff --git a/utils.c b/utils.c
index 9d5802a..0894c65 100644 (file)
--- a/utils.c
+++ b/utils.c
 #include <stdlib.h>
 #include "utils.h"
 
-int
-avl_strcmp(const void *k1, const void *k2, void *ptr)
-{
-       return strcmp(k1, k2);
-}
-
 void
 vlist_init(struct vlist_tree *tree, avl_tree_comp cmp, vlist_update_cb update)
 {
diff --git a/utils.h b/utils.h
index 5b6c5e7..f5ccfaa 100644 (file)
--- a/utils.h
+++ b/utils.h
@@ -16,6 +16,7 @@
 
 #include <libubox/list.h>
 #include <libubox/avl.h>
+#include <libubox/avl-cmp.h>
 #include <libubox/blobmsg.h>
 
 #ifndef __OPTIMIZE__
@@ -149,6 +150,4 @@ static inline int fls(int x)
 }
 #endif
 
-int avl_strcmp(const void *k1, const void *k2, void *ptr);
-
 #endif