summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-05-26 17:52:19 +0200
committerFelix Fietkau <nbd@openwrt.org>2012-05-26 17:55:58 +0200
commit1c326d5a6cbef455e9ae148072161f620540ba54 (patch)
tree8f24c5c84c7df9a3dda95571c74df11f92ec6dab
parent8758677c03d3c94d3fd81c8e44b3a7307b693e9c (diff)
avl_strcmp is now part of libubox
-rw-r--r--utils.c6
-rw-r--r--utils.h3
2 files changed, 1 insertions, 8 deletions
diff --git a/utils.c b/utils.c
index 9d5802a..0894c65 100644
--- a/utils.c
+++ b/utils.c
@@ -15,12 +15,6 @@
#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
--- 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