Code

Removed bogus checking in ut_config.
authorAndres J. Diaz <ajdiaz@connectical.com>
Tue, 1 Mar 2011 16:25:22 +0000 (17:25 +0100)
committerFlorian Forster <octo@huhu.verplant.org>
Tue, 8 Mar 2011 08:42:51 +0000 (09:42 +0100)
Since threshold is a plugin, the main config block (<Plugin "threshold">)
cannot contain only one keyword (as was mandatory in previous versions),
so checking must be removed.

Signed-off-by: Andres J. Diaz <ajdiaz@connectical.com>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/threshold.c

index 277b45385d0b454e26d230203d5b1326734d4f6d..7bbc59ef011a5f4a597b524f54a10852f1b725bf 100644 (file)
@@ -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);