projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
novi upstream verzije 2.8.3
[ossec-hids.git]
/
src
/
win32
/
setup-syscheck.c
diff --git
a/src/win32/setup-syscheck.c
b/src/win32/setup-syscheck.c
index
c20bcfe
..
6c230b4
100755
(executable)
--- a/
src/win32/setup-syscheck.c
+++ b/
src/win32/setup-syscheck.c
@@
-13,7
+13,6
@@
#include "setup-shared.h"
#include "os_xml/os_xml.h"
#include "setup-shared.h"
#include "os_xml/os_xml.h"
-#include "os_xml/os_xml_writer.h"
#define OSSEC_CONFIG_TMP ".tmp.ossec.conf"
#define OSSEC_CONFIG_TMP ".tmp.ossec.conf"
@@
-22,7
+21,7
@@
int main(int argc, char **argv)
{
char *status;
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)
{
if(argc < 3)
{
@@
-60,7
+59,7
@@
int main(int argc, char **argv)
/* Writing to the XML. */
if(OS_WriteXML(OSSECCONF, OSSEC_CONFIG_TMP, xml_syscheck_status,
/* 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);
{
printf("%s: Error writing to the Config file. Exiting.\n", argv[0]);
return(0);