Code

src/utils_avltree.[ch]: Change avl_insert to return >0 if the key is already in the...
authorLuke Heberling <collectd@c-ware.com>
Thu, 13 Dec 2007 07:15:38 +0000 (08:15 +0100)
committerFlorian Forster <octo@huhu.verplant.org>
Thu, 13 Dec 2007 07:15:38 +0000 (08:15 +0100)
commit8798c7ec333eb16410161d99487ab0bee4d9adc3
tree44e47687523bf5df1b4cf05628aab735ac4d9211
parentf46cf590f7e0a25fe5f826b762766f39e1f3a1f6
src/utils_avltree.[ch]: Change avl_insert to return >0 if the key is already in the tree.

I'd like to be able to tell when avl_insert fails because of a duplicate key as
opposed to when it fails due to out of memory or other condition.

Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/utils_avltree.c
src/utils_avltree.h