new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git] / src / remoted / config.c
old mode 100755 (executable)
new mode 100644 (file)
index 3328023..02606b0
@@ -1,6 +1,3 @@
-/* @(#) $Id: ./src/remoted/config.c, 2011/09/08 dcid Exp $
- */
-
 /* Copyright (C) 2009 Trend Micro Inc.
  * All rights reserved.
  *
  * 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 */