//! The file containing the sorted entries.
static char redirector_sorted[MAXLEN]="";
-static void parse_log(FILE *fp_ou,char *buf)
+static void parse_log(FILE *fp_ou,char *buf,int dfrom,int duntil)
{
char leks[5], sep[2], res[MAXLEN];
char hour[15];
//sprintf(warea,"%04d%02d%02d",year,mon,day);
- if (RedirectorFilterOutDate && (dfrom!=0 || duntil!=0)) {
+ if (RedirectorFilterOutDate) {
idata = year*10000+mon*100+day;
if(idata < dfrom || idata > duntil)
return;
}
while ((buf=longline_read(fp_in,line)) != NULL) {
- parse_log(fp_ou,buf);
+ parse_log(fp_ou,buf,dfrom,duntil);
}
if (FileObject_Close(fp_in)) {
debuga(__FILE__,__LINE__,_("Read error in \"%s\": %s\n"),wentp,FileObject_GetLastCloseError());