diff --git a/src/threshold.c b/src/threshold.c
index b753d37445166c4facfdd9facf2cabbf8e4fa1be..624ab7a91dd7c14b7112e9c2884bff46c636f8d1 100644 (file)
--- a/src/threshold.c
+++ b/src/threshold.c
return (-1);
}
- th_copy = (threshold_t *) malloc (sizeof (threshold_t));
+ th_copy = malloc (sizeof (*th_copy));
if (th_copy == NULL)
{
sfree (name_copy);
return (0);
} /* }}} int ut_missing */
-int ut_config (oconfig_item_t *ci)
+static int ut_config (oconfig_item_t *ci)
{ /* {{{ */
int i;
int status = 0;