-/* @(#) $Id$ */
+/* @(#) $Id: ./src/win32/setup-syscheck.c, 2011/09/08 dcid Exp $
+ */
/* Copyright (C) 2009 Trend Micro Inc.
* All rights reserved.
* 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"
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]);
/* 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);