X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;ds=sidebyside;f=src%2Fanalysisd%2Ftestrule.c;fp=src%2Fanalysisd%2Ftestrule.c;h=8062fec71d7efb016b5122bcf9b9c8fffe0f37a4;hb=789cbc8e52da68eba3517b920ef22e000cf3c9fd;hp=d2f5b2544c7e80549239809c36057f55bf195a0b;hpb=ef70704f0b31b59bb719b884d6a99cb9e3e2044a;p=ossec-hids.git diff --git a/src/analysisd/testrule.c b/src/analysisd/testrule.c index d2f5b25..8062fec 100755 --- a/src/analysisd/testrule.c +++ b/src/analysisd/testrule.c @@ -76,16 +76,12 @@ int OS_CleanMSG(char *msg, Eventinfo *lf); /* 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 */ @@ -96,7 +92,7 @@ int SetDecodeXML(); 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); @@ -126,8 +122,10 @@ int main(int argc, char **argv) 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; @@ -363,7 +361,7 @@ int main(int argc, char **argv) verbose(STARTUP_MSG, ARGV0, getpid()); - /* Going to main loop */ + /* Going to main loop */ OS_ReadMSG(m_queue, ut_str); @@ -466,7 +464,7 @@ void OS_ReadMSG(int m_queue, char *ut_str) /* Receive message from queue */ - if(fgets(msg +8, OS_MAXSTR, stdin)) + if(fgets(msg +8, OS_MAXSTR -8, stdin)) { RuleNode *rulenode_pt;