X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fthreshold.c;h=77ba3f324b6e425afb4233fe0526b1cb86afdf8c;hb=21ab7512825cf8177d5eee5101344b45d0854610;hp=624ab7a91dd7c14b7112e9c2884bff46c636f8d1;hpb=10b10a6718dbb87c6890d4bc821a6e21c8b7b527;p=collectd.git diff --git a/src/threshold.c b/src/threshold.c index 624ab7a9..77ba3f32 100644 --- a/src/threshold.c +++ b/src/threshold.c @@ -30,9 +30,6 @@ #include "utils_cache.h" #include "utils_threshold.h" -#include -#include - /* * Threshold management * ==================== @@ -78,7 +75,6 @@ static int ut_threshold_add (const threshold_t *th) return (-1); } memcpy (th_copy, th, sizeof (threshold_t)); - th_ptr = NULL; DEBUG ("ut_threshold_add: Adding entry `%s'", name); @@ -878,7 +874,7 @@ static int ut_config (oconfig_item_t *ci) if (threshold_tree == NULL) { - threshold_tree = c_avl_create ((void *) strcmp); + threshold_tree = c_avl_create ((int (*) (const void *, const void *)) strcmp); if (threshold_tree == NULL) { ERROR ("ut_config: c_avl_create failed.");