projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
src/utils_avltree.[ch]: Change avl_insert to return >0 if the key is already in the...
[collectd.git]
/
src
/
utils_avltree.c
diff --git
a/src/utils_avltree.c
b/src/utils_avltree.c
index
09cf2e6
..
031ec47
100644
(file)
--- a/
src/utils_avltree.c
+++ b/
src/utils_avltree.c
@@
-518,7
+518,7
@@
int avl_insert (avl_tree_t *t, void *key, void *value)
if (cmp == 0)
{
free_node (new);
- return (
-
1);
+ return (1);
}
else if (cmp < 0)
{