int iarq=0;
int isa_ncols=0,isa_cols[ISACOL_Last];
int lastlog=-1;
- long int nbytes;
+ long long int nbytes;
long int elap_time;
bool from_stdin;
bool from_pipe;
if(strcmp(user,"-") ==0 || strcmp(user," ") ==0 || strcmp(user,"") ==0 || strcmp(user,":") ==0)
continue;
- nbytes=atol(tam);
+ nbytes=atoll(tam);
if (nbytes<0) nbytes=0;
elap_time=atol(elap);
}
}
- if (fprintf(ufile->file, "%s\t%s\t%s\t%s\t%ld\t%s\t%ld\t%s\n",dia,hora,ip,url,nbytes,code,elap_time,smartfilter)<=0) {
+ if (fprintf(ufile->file, "%s\t%s\t%s\t%s\t%"PRIi64"\t%s\t%ld\t%s\n",dia,hora,ip,url,nbytes,code,elap_time,smartfilter)<=0) {
debuga(_("Write error in the log file of user %s\n"),user);
exit(EXIT_FAILURE);
}
records_kept++;
if(fp_log && ilf!=ILF_Sarg)
- fprintf(fp_log, "%s\t%s\t%s\t%s\t%s\t%ld\t%s\t%ld\t%s\n",dia,hora,user,ip,url,nbytes,code,elap_time,smartfilter);
+ fprintf(fp_log, "%s\t%s\t%s\t%s\t%s\t%"PRIi64"\t%s\t%ld\t%s\n",dia,hora,user,ip,url,nbytes,code,elap_time,smartfilter);
totregsg++;
printf("FUNC=\t%s\n",fun);
printf("URL=\t%s\n",url);
printf("CODE=\t%s\n",code);
- printf("LEN=\t%ld\n",nbytes);
+ printf("LEN=\t%"PRIi64"\n",nbytes);
}
}
if (!from_stdin) {