X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fthreshold.c;h=77ba3f324b6e425afb4233fe0526b1cb86afdf8c;hb=21ab7512825cf8177d5eee5101344b45d0854610;hp=94a4f02449c06fb8093defef6ea2a1095e556352;hpb=5eb1fef6de7e0c8fb99e3d85063d96d7cc785f9b;p=collectd.git diff --git a/src/threshold.c b/src/threshold.c index 94a4f024..77ba3f32 100644 --- a/src/threshold.c +++ b/src/threshold.c @@ -30,8 +30,6 @@ #include "utils_cache.h" #include "utils_threshold.h" -#include - /* * Threshold management * ==================== @@ -876,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.");