freebsd-ports/comms/bforce-kst/files/patch-sess_stat.c
Kirill Ponomarev bbc1787d3d Fix statistic read and write.
PR:		ports/70104
Submitted by:	maintainer
2004-08-07 06:59:53 +00:00

20 lines
664 B
C

--- bforce/sess_stat.c.old Sat Aug 7 02:06:26 2004
+++ bforce/sess_stat.c Sat Aug 7 02:11:29 2004
@@ -75,7 +75,7 @@
memset(stat, '\0', sizeof(s_sess_stat));
- fscanf(fp, "%u %u %u %u %u %lu %lu %lu %lu",
+ fscanf(fp, "%u %u %u %u %u %u %lu %lu %lu %lu",
(unsigned int *) &stat->tries,
(unsigned int *) &stat->tries_noconn,
(unsigned int *) &stat->tries_noansw,
@@ -98,7 +98,7 @@
if( fseek(fp, 0, SEEK_SET) == -1 )
return -1;
- fprintf(fp, "%u %u %u %u %u %lu %lu %lu %lu",
+ fprintf(fp, "%u %u %u %u %u %u %lu %lu %lu %lu",
(unsigned int) stat->tries,
(unsigned int) stat->tries_noconn,
(unsigned int) stat->tries_noansw,