X-Git-Url: http://ftp.carnet.hr/pub/carnet-debian/scm?a=blobdiff_plain;f=src%2Fos_maild%2Fmaild.c;h=976796e6dcddecf66708c76b59012bf9bf7a94e3;hb=e81e4e82e5115bf99b6fbd9ebd486de325d67ed6;hp=15bfc3013068340e7871a561d4ee271e2eb007a2;hpb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;p=ossec-hids.git diff --git a/src/os_maild/maild.c b/src/os_maild/maild.c index 15bfc30..976796e 100755 --- a/src/os_maild/maild.c +++ b/src/os_maild/maild.c @@ -138,7 +138,7 @@ int main(int argc, char **argv) } - /* Privilege separation */ + /* Privilege separation */ if(Privsep_SetGroup(gid) < 0) ErrorExit(SETGID_ERROR,ARGV0,group); @@ -174,7 +174,7 @@ int main(int argc, char **argv) verbose(STARTUP_MSG, ARGV0, (int)getpid()); - /* the real daemon now */ + /* the real daemon now */ OS_Run(&mail); exit(0); } @@ -195,7 +195,6 @@ void OS_Run(MailConfig *mail) int i = 0; int mailtosend = 0; int childcount = 0; - int today = 0; int thishour = 0; int n_errs = 0; @@ -205,8 +204,7 @@ void OS_Run(MailConfig *mail) /* Getting currently time before starting */ tm = time(NULL); - p = localtime(&tm); - today = p->tm_mday; + p = localtime(&tm); thishour = p->tm_hour;