-/* @(#) $Id$ */
+/* @(#) $Id: ./src/config/reports-config.c, 2011/09/08 dcid Exp $
+ */
/* Copyright (C) 2009 Trend Micro Inc.
* All right reserved.
monitor_config *mon_config = (monitor_config *)config;
-
+
/* Getting any configured entry. */
if(mon_config->reports)
{
s++;
}
-
+
/* Allocating the memory for the config. */
- os_realloc(mon_config->reports, (s + 2) * sizeof(report_config *),
+ os_realloc(mon_config->reports, (s + 2) * sizeof(report_config *),
mon_config->reports);
os_calloc(1, sizeof(report_config), mon_config->reports[s]);
mon_config->reports[s + 1] = NULL;
mon_config->reports[s]->r_filter.show_alerts = 0;
-
+
/* Reading the XML. */
while(node[i])
{
os_strdup(node[i]->content, ncat);
- if(os_report_configfilter(node[i]->element, ncat,
+ if(os_report_configfilter(node[i]->element, ncat,
&mon_config->reports[s]->r_filter, reportf) < 0)
{
merror("%s: Invalid filter: %s:%s (ignored).", __local_name, node[i]->element, node[i]->content);
if(mon_config->reports[s]->title)
merror("%s: No \"email to\" configured for the report '%s'. Ignoring it.", __local_name, mon_config->reports[s]->title);
else
- merror("%s: No \"email to\" and title configured for report. Ignoring it.", __local_name);
+ merror("%s: No \"email to\" and title configured for report. Ignoring it.", __local_name);
}
if(!mon_config->reports[s]->title)