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
/
agentlessd
/
agentlessd.c
diff --git
a/src/agentlessd/agentlessd.c
b/src/agentlessd/agentlessd.c
index
505d43b
..
1ff7303
100755
(executable)
--- a/
src/agentlessd/agentlessd.c
+++ b/
src/agentlessd/agentlessd.c
@@
-479,9
+479,7
@@
void Agentlessd()
time_t tm;
struct tm *p;
time_t tm;
struct tm *p;
- int today = 0;
- int thismonth = 0;
- int thisyear = 0;
+ int today = 0;
int test_it = 1;
char str[OS_SIZE_1024 +1];
int test_it = 1;
char str[OS_SIZE_1024 +1];
@@
-494,11
+492,9
@@
void Agentlessd()
/* Getting currently time before starting */
tm = time(NULL);
/* Getting currently time before starting */
tm = time(NULL);
- p = localtime(&tm);
+ p = localtime(&tm);
today = p->tm_mday;
today = p->tm_mday;
- thismonth = p->tm_mon;
- thisyear = p->tm_year+1900;
/* Connecting to the message queue
/* Connecting to the message queue
@@
-523,8
+519,6
@@
void Agentlessd()
if(today != p->tm_mday)
{
today = p->tm_mday;
if(today != p->tm_mday)
{
today = p->tm_mday;
- thismonth = p->tm_mon;
- thisyear = p->tm_year+1900;
}
}