projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
novi upstream verzije 2.8.3
[ossec-hids.git]
/
src
/
analysisd
/
testrule.c
diff --git
a/src/analysisd/testrule.c
b/src/analysisd/testrule.c
index
d2f5b25
..
8062fec
100755
(executable)
--- 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();
/* for FTS */
int FTS_Init();
-int FTS(Eventinfo *lf);
int AddtoIGnore(Eventinfo *lf);
int IGnore(Eventinfo *lf);
/* For decoders */
void DecodeEvent(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 */
/* For Decoders */
@@
-96,7
+92,7
@@
int SetDecodeXML();
void logtest_help(const char *prog)
{
print_out(" ");
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);
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 *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;
char *cfg = DEFAULTCPATH;
@@
-363,7
+361,7
@@
int main(int argc, char **argv)
verbose(STARTUP_MSG, ARGV0, getpid());
verbose(STARTUP_MSG, ARGV0, getpid());
- /* Going to main loop */
+ /* Going to main loop */
OS_ReadMSG(m_queue, ut_str);
OS_ReadMSG(m_queue, ut_str);
@@
-466,7
+464,7
@@
void OS_ReadMSG(int m_queue, char *ut_str)
/* Receive message from queue */
/* Receive message from queue */
- if(fgets(msg +8, OS_MAXSTR, stdin))
+ if(fgets(msg +8, OS_MAXSTR -8, stdin))
{
RuleNode *rulenode_pt;
{
RuleNode *rulenode_pt;