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.h
diff --git
a/src/utils_avltree.h
b/src/utils_avltree.h
index
7a29a29
..
0fc8ea1
100644
(file)
--- a/
src/utils_avltree.h
+++ b/
src/utils_avltree.h
@@
-77,8
+77,8
@@
void avl_destroy (avl_tree_t *t);
* `value' Value to be stored.
*
* RETURN VALUE
* `value' Value to be stored.
*
* RETURN VALUE
- * Zero upon success
and non-zero upon failure and if the key is already
- * stored in the tree.
+ * Zero upon success
, non-zero otherwise. It's less than zero if an error
+ *
occurred or greater than zero if the key is already
stored in the tree.
*/
int avl_insert (avl_tree_t *t, void *key, void *value);
*/
int avl_insert (avl_tree_t *t, void *key, void *value);