X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fos_maild%2Fmaild.c;fp=src%2Fos_maild%2Fmaild.c;h=976796e6dcddecf66708c76b59012bf9bf7a94e3;hp=15bfc3013068340e7871a561d4ee271e2eb007a2;hb=789cbc8e52da68eba3517b920ef22e000cf3c9fd;hpb=ef70704f0b31b59bb719b884d6a99cb9e3e2044a 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;