From: Andres J. Diaz Date: Tue, 1 Mar 2011 16:25:22 +0000 (+0100) Subject: Removed bogus checking in ut_config. X-Git-Tag: collectd-5.1.0~69 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6f452fe1aaa3e81260a7b277d4ebcb5ba6b8cf08;p=collectd.git Removed bogus checking in ut_config. Since threshold is a plugin, the main config block () cannot contain only one keyword (as was mandatory in previous versions), so checking must be removed. Signed-off-by: Andres J. Diaz Signed-off-by: Florian Forster --- diff --git a/src/threshold.c b/src/threshold.c index 277b4538..7bbc59ef 100644 --- a/src/threshold.c +++ b/src/threshold.c @@ -520,13 +520,6 @@ int ut_config (oconfig_item_t *ci) threshold_t th; - if (ci->values_num != 0) - { - ERROR ("threshold values: The `Threshold' block may not have any " - "arguments."); - return (-1); - } - if (threshold_tree == NULL) { threshold_tree = c_avl_create ((void *) strcmp);