diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-05-26 17:52:19 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-05-26 17:55:58 +0200 |
commit | 1c326d5a6cbef455e9ae148072161f620540ba54 (patch) | |
tree | 8f24c5c84c7df9a3dda95571c74df11f92ec6dab | |
parent | 8758677c03d3c94d3fd81c8e44b3a7307b693e9c (diff) |
avl_strcmp is now part of libubox
-rw-r--r-- | utils.c | 6 | ||||
-rw-r--r-- | utils.h | 3 |
2 files changed, 1 insertions, 8 deletions
@@ -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) { @@ -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 |