Skip to content

Commit

Permalink
Merge pull request #75 from cgzones/syscheck_config
Browse files Browse the repository at this point in the history
rename syscheck config struct
  • Loading branch information
ddpbsd committed Feb 24, 2014
2 parents bd74c5b + 97c1dce commit 9bf2090
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions src/config/syscheck-config.c
Expand Up @@ -17,7 +17,7 @@



int dump_syscheck_entry(config *syscheck, char *entry, int vals, int reg, char *restrictfile)
int dump_syscheck_entry(syscheck_config *syscheck, char *entry, int vals, int reg, char *restrictfile)
{
int pl = 0;

Expand Down Expand Up @@ -107,7 +107,7 @@ int dump_syscheck_entry(config *syscheck, char *entry, int vals, int reg, char *

/* Read Windows registry configuration */
#ifdef WIN32
int read_reg(config *syscheck, char *entries)
int read_reg(syscheck_config *syscheck, char *entries)
{
int i;
char **entry;
Expand Down Expand Up @@ -193,7 +193,7 @@ int read_reg(config *syscheck, char *entries)


/* Read directories attributes */
int read_attr(config *syscheck, char *dirs, char **g_attrs, char **g_values)
int read_attr(syscheck_config *syscheck, char *dirs, char **g_attrs, char **g_values)
{
char *xml_check_all = "check_all";
char *xml_check_sum = "check_sum";
Expand Down Expand Up @@ -584,9 +584,9 @@ int Read_Syscheck(XML_NODE node, void *configp, void *mailp)
check_sum="yes">/var/log</directories>
*/

config *syscheck;
syscheck_config *syscheck;

syscheck = (config *)configp;
syscheck = (syscheck_config *)configp;


while(node[i])
Expand Down
2 changes: 1 addition & 1 deletion src/config/syscheck-config.h
Expand Up @@ -82,7 +82,7 @@ typedef struct _config

char *prefilter_cmd;

}config;
}syscheck_config;

#endif

Expand Down
4 changes: 2 additions & 2 deletions src/syscheckd/syscheck.c
Expand Up @@ -30,7 +30,7 @@

#include "rootcheck/rootcheck.h"

int dump_syscheck_entry(config *syscheck, char *entry, int vals, int reg, char *restrictfile);
int dump_syscheck_entry(syscheck_config *syscheck, char *entry, int vals, int reg, char *restrictfile);

#ifdef USE_MAGIC
#include <magic.h>
Expand Down Expand Up @@ -67,7 +67,7 @@ void read_internal(int debug_level)
syscheck.sleep_after = getDefine_Int("syscheck","sleep_after",1,9999);

/* Check current debug_level
* Command line setting takes precedence
* Command line setting takes precedence
*/
if (debug_level == 0)
{
Expand Down
2 changes: 1 addition & 1 deletion src/syscheckd/syscheck.h
Expand Up @@ -23,7 +23,7 @@


/* Global config */
config syscheck;
syscheck_config syscheck;


/** Function Prototypes **/
Expand Down

0 comments on commit 9bf2090

Please sign in to comment.