izmjene za lintian
[ossec-hids.git] / src / win32 / setup-syscheck.c
index f27804d..6c230b4 100755 (executable)
@@ -1,4 +1,5 @@
-/* @(#) $Id$ */
+/* @(#) $Id: ./src/win32/setup-syscheck.c, 2011/09/08 dcid Exp $
+ */
 
 /* Copyright (C) 2009 Trend Micro Inc.
  * All rights reserved.
@@ -8,11 +9,10 @@
  * License (version 2) as published by the FSF - Free Software
  * Foundation
  */
-       
+
 
 #include "setup-shared.h"
 #include "os_xml/os_xml.h"
-#include "os_xml/os_xml_writer.h"
 
 #define OSSEC_CONFIG_TMP  ".tmp.ossec.conf"
 
@@ -21,8 +21,8 @@
 int main(int argc, char **argv)
 {
     char *status;
-    char *(xml_syscheck_status[])={"ossec_config","syscheck","disabled", NULL};
-    
+    const char *(xml_syscheck_status[])={"ossec_config","syscheck","disabled", NULL};
+
     if(argc < 3)
     {
         printf("%s: Invalid syntax.\n", argv[0]);
@@ -59,7 +59,7 @@ int main(int argc, char **argv)
 
     /* Writing to the XML. */
     if(OS_WriteXML(OSSECCONF, OSSEC_CONFIG_TMP, xml_syscheck_status,
-                   NULL, "no", status, 0) != 0)
+                   "no", status) != 0)
     {
         printf("%s: Error writing to the Config file. Exiting.\n", argv[0]);
         return(0);