Imported Upstream version 2.7
[ossec-hids.git] / src / os_csyslogd / config.c
index fbeb54e..91770e1 100755 (executable)
@@ -1,11 +1,12 @@
-/* @(#) $Id: config.c,v 1.2 2009/06/24 17:06:29 dcid Exp $ */
+/* @(#) $Id: ./src/os_csyslogd/config.c, 2011/09/08 dcid Exp $
+ */
 
 /* Copyright (C) 2009 Trend Micro Inc.
  * All rights reserved.
  *
  * This program is a free software; you can redistribute it
  * and/or modify it under the terms of the GNU General Public
- * License (version 3) as published by the FSF - Free Software
+ * License (version 2) as published by the FSF - Free Software
  * Foundation.
  *
  * License details at the LICENSE file included with OSSEC or
 #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);