obrisane nepotrebne datoteke od zadnjeg builda
[ossec-hids.git] / src / remoted / config.c
old mode 100755 (executable)
new mode 100644 (file)
index 5b96b7d..02606b0
@@ -1,47 +1,36 @@
-/* @(#) $Id: config.c,v 1.12 2009/06/24 18:53:07 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
  */
 
-
 #include "shared.h"
-
 #include "os_xml/os_xml.h"
 #include "os_regex/os_regex.h"
 #include "os_net/os_net.h"
-
 #include "remoted.h"
 #include "config/config.h"
 
 
-/* RemotedConfig v0.4, 2006/04/10
- * Read the config file (the remote access)
- * v0.2: New OS_XML
- * v0.3: Some improvements and cleanup
- * v0.4: Move everything to the global config validator.
- */ 
-int RemotedConfig(char *cfgfile, remoted *logr)
+/* Read the config file (the remote access) */
+int RemotedConfig(const char *cfgfile, remoted *cfg)
 {
     int modules = 0;
 
-    modules|= CREMOTE;
+    modules |= CREMOTE;
 
-    logr->port = NULL;
-    logr->conn = NULL;
-    logr->allowips = NULL;
-    logr->denyips = NULL;
+    cfg->port = NULL;
+    cfg->conn = NULL;
+    cfg->allowips = NULL;
+    cfg->denyips = NULL;
 
-    if(ReadConfig(modules, cfgfile, logr, NULL) < 0)
-        return(OS_INVALID);
+    if (ReadConfig(modules, cfgfile, cfg, NULL) < 0) {
+        return (OS_INVALID);
+    }
 
-    return(1);
+    return (1);
 }
 
-
-/* EOF */