/* for FTS */
int FTS_Init();
-int FTS(Eventinfo *lf);
int AddtoIGnore(Eventinfo *lf);
int IGnore(Eventinfo *lf);
/* For decoders */
void DecodeEvent(Eventinfo *lf);
-int DecodeSyscheck(Eventinfo *lf);
-int DecodeRootcheck(Eventinfo *lf);
-int DecodeHostinfo(Eventinfo *lf);
/* For Decoders */
void logtest_help(const char *prog)
{
print_out(" ");
- print_out("%s %s - %s (%s)", __name, __version, __author, __contact);
+ print_out("%s %s - %s (%s)", __ossec_name, __version, __author, __contact);
print_out("%s", __site);
print_out(" ");
print_out(" %s: -[Vatfdh] [-U ut_str] [-u user] [-g group] [-c config] [-D dir]", prog);
char *ut_str = NULL;
char *dir = DEFAULTDIR;
- char *user = USER;
- char *group = GROUPGLOBAL;
+ // TODO: delete or implement
+ char *user __attribute__((unused)) = USER;
+ // TODO: delete or implement
+ char *group __attribute__((unused)) = GROUPGLOBAL;
char *cfg = DEFAULTCPATH;
verbose(STARTUP_MSG, ARGV0, getpid());
- /* Going to main loop */
+ /* Going to main loop */
OS_ReadMSG(m_queue, ut_str);
/* Receive message from queue */
- if(fgets(msg +8, OS_MAXSTR, stdin))
+ if(fgets(msg +8, OS_MAXSTR -8, stdin))
{
RuleNode *rulenode_pt;