X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Frootcheck%2Fconfig.c;h=91c41d6678e3b333449bb85a57d997266c0b6f11;hb=3f728675941dc69d4e544d3a880a56240a6e394a;hp=b04d49275ac8c9f0476c2aed422ccd693876fd80;hpb=301048b51990573e58a30dc4a5bb4ec285cad554;p=ossec-hids.git diff --git a/src/rootcheck/config.c b/src/rootcheck/config.c old mode 100755 new mode 100644 index b04d492..91c41d6 --- a/src/rootcheck/config.c +++ b/src/rootcheck/config.c @@ -1,5 +1,3 @@ -/* @(#) $Id$ */ - /* Copyright (C) 2009 Trend Micro Inc. * All right reserved. * @@ -15,27 +13,23 @@ #include "config/config.h" - -/* Read_Rootcheck_Config: Reads the rootcheck config - */ -int Read_Rootcheck_Config(char * cfgfile) +/* Read the rootcheck config */ +int Read_Rootcheck_Config(const char *cfgfile) { int modules = 0; - modules|= CROOTCHECK; - - if(ReadConfig(modules, cfgfile, &rootcheck, NULL) < 0) - return(OS_INVALID); + modules |= CROOTCHECK; + if (ReadConfig(modules, cfgfile, &rootcheck, NULL) < 0) { + return (OS_INVALID); + } - - #ifdef CLIENT - /* Reading shared config */ - modules|= CAGENT_CONFIG; +#ifdef CLIENT + /* Read shared config */ + modules |= CAGENT_CONFIG; ReadConfig(modules, AGENTCONFIG, &rootcheck, NULL); - #endif - - return(0); +#endif + + return (0); } +#endif /* OSSECHIDS */ -/* EOF */ -#endif