X-Git-Url: http://ftp.carnet.hr/pub/carnet-debian/scm?a=blobdiff_plain;f=src%2Fwin32%2Fsetup-syscheck.c;h=6c230b4f6a696c89552d7d3481cfecd8c02adf5d;hb=e81e4e82e5115bf99b6fbd9ebd486de325d67ed6;hp=47f43473fc2383d0599e8471de87106e163022a3;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;p=ossec-hids.git diff --git a/src/win32/setup-syscheck.c b/src/win32/setup-syscheck.c index 47f4347..6c230b4 100755 --- a/src/win32/setup-syscheck.c +++ b/src/win32/setup-syscheck.c @@ -1,18 +1,18 @@ -/* @(#) $Id: setup-syscheck.c,v 1.5 2009/06/24 18:53:10 dcid Exp $ */ +/* @(#) $Id: ./src/win32/setup-syscheck.c, 2011/09/08 dcid Exp $ + */ /* Copyright (C) 2009 Trend Micro Inc. * All rights 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 "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);