projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8758677
)
avl_strcmp is now part of libubox
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 26 May 2012 15:52:19 +0000
(17:52 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 26 May 2012 15:55:58 +0000
(17:55 +0200)
utils.c
patch
|
blob
|
history
utils.h
patch
|
blob
|
history
diff --git
a/utils.c
b/utils.c
index 9d5802a41df0aeb195af6b9f26286afec83c7093..0894c65dff1130adbe3dcf2ea290cc2728c70b8d 100644
(file)
--- 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 5b6c5e7960422daf4050382d93203f0f98d0d845..f5ccfaaf3e8414af0c5084d72d21218f7f78f6b7 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