X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fwin32%2Fsetup-syscheck.c;h=e07fc647b244cae00833ff89269c90aa372d2c80;hb=3f728675941dc69d4e544d3a880a56240a6e394a;hp=47f43473fc2383d0599e8471de87106e163022a3;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;p=ossec-hids.git diff --git a/src/win32/setup-syscheck.c b/src/win32/setup-syscheck.c old mode 100755 new mode 100644 index 47f4347..e07fc64 --- a/src/win32/setup-syscheck.c +++ b/src/win32/setup-syscheck.c @@ -1,77 +1,60 @@ -/* @(#) $Id: setup-syscheck.c,v 1.5 2009/06/24 18:53:10 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" -/* Enable Syscheck.*/ +/* Enable Syscheck */ int main(int argc, char **argv) { char *status; - char *(xml_syscheck_status[])={"ossec_config","syscheck","disabled", NULL}; - - if(argc < 3) - { + const char *(xml_syscheck_status[]) = {"ossec_config", "syscheck", "disabled", NULL}; + + if (argc < 3) { printf("%s: Invalid syntax.\n", argv[0]); printf("Try: '%s