obrisane nepotrebne datoteke od zadnjeg builda
[ossec-hids.git] / src / rootcheck / config.c
old mode 100755 (executable)
new mode 100644 (file)
index cf085dc..91c41d6
@@ -1,11 +1,9 @@
-/* @(#) $Id: config.c,v 1.18 2009/06/24 18:53:07 dcid Exp $ */
-
 /* Copyright (C) 2009 Trend Micro Inc.
  * All right 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 "config/config.h"
 
 
-
-/* Read_Rootcheck_Config: Reads the rootcheck config
- */
-int Read_Rootcheck_Config(char * cfgfile)
+/* Read the rootcheck config */
+int Read_Rootcheck_Config(const char *cfgfile)
 {
     int modules = 0;
 
-    modules|= CROOTCHECK;
-
-    if(ReadConfig(modules, cfgfile, &rootcheck, NULL) < 0)
-        return(OS_INVALID);
+    modules |= CROOTCHECK;
+    if (ReadConfig(modules, cfgfile, &rootcheck, NULL) < 0) {
+        return (OS_INVALID);
+    }
 
-
-    #ifdef CLIENT
-    /* Reading shared config */
-    modules|= CAGENT_CONFIG;
+#ifdef CLIENT
+    /* Read shared config */
+    modules |= CAGENT_CONFIG;
     ReadConfig(modules, AGENTCONFIG, &rootcheck, NULL);
-    #endif
-                  
-    return(0);
+#endif
+
+    return (0);
 }
+#endif /* OSSECHIDS */
 
-/* EOF */
-#endif