X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;ds=sidebyside;f=src%2Fagentlessd%2Fagentlessd.c;h=1ff73036a92c4f7e1939d5624743a7f677437258;hb=789cbc8e52da68eba3517b920ef22e000cf3c9fd;hp=505d43b37ccad19bf3d9cccfb590ef138b7123af;hpb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;p=ossec-hids.git diff --git a/src/agentlessd/agentlessd.c b/src/agentlessd/agentlessd.c index 505d43b..1ff7303 100755 --- a/src/agentlessd/agentlessd.c +++ b/src/agentlessd/agentlessd.c @@ -479,9 +479,7 @@ void Agentlessd() 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]; @@ -494,11 +492,9 @@ void Agentlessd() /* Getting currently time before starting */ tm = time(NULL); - p = localtime(&tm); + p = localtime(&tm); today = p->tm_mday; - thismonth = p->tm_mon; - thisyear = p->tm_year+1900; /* Connecting to the message queue @@ -523,8 +519,6 @@ void Agentlessd() if(today != p->tm_mday) { today = p->tm_mday; - thismonth = p->tm_mon; - thisyear = p->tm_year+1900; }