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];
/* 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
if(today != p->tm_mday)
{
today = p->tm_mday;
- thismonth = p->tm_mon;
- thisyear = p->tm_year+1900;
}