X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fos_csyslogd%2Fconfig.c;h=91770e1097a9f0f8c134efbe9e7e6ca5689067e8;hp=c0877545a0a82354739cd6a464a3ce676867814a;hb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;hpb=301048b51990573e58a30dc4a5bb4ec285cad554 diff --git a/src/os_csyslogd/config.c b/src/os_csyslogd/config.c index c087754..91770e1 100755 --- a/src/os_csyslogd/config.c +++ b/src/os_csyslogd/config.c @@ -1,4 +1,5 @@ -/* @(#) $Id$ */ +/* @(#) $Id: ./src/os_csyslogd/config.c, 2011/09/08 dcid Exp $ + */ /* Copyright (C) 2009 Trend Micro Inc. * All rights reserved. @@ -18,11 +19,11 @@ #include "config/config.h" -/** void *OS_SyslogConf(int test_config, char *cfgfile, +/** void *OS_SyslogConf(int test_config, char *cfgfile, SyslogConfig **syslog_config) * Reads configuration. */ -void *OS_ReadSyslogConf(int test_config, char *cfgfile, +void *OS_ReadSyslogConf(int test_config, char *cfgfile, SyslogConfig **syslog_config) { int modules = 0; @@ -33,15 +34,15 @@ void *OS_ReadSyslogConf(int test_config, char *cfgfile, modules|= CSYSLOGD; gen_config.data = syslog_config; - + /* Reading configuration */ if(ReadConfig(modules, cfgfile, &gen_config, NULL) < 0) { ErrorExit(CONFIG_ERROR, ARGV0, cfgfile); return(NULL); - } + } + - syslog_config = gen_config.data; return(syslog_config);