summaryrefslogtreecommitdiffstats
path: root/comms
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-08-07 06:59:53 +0000
committerkrion <krion@FreeBSD.org>2004-08-07 06:59:53 +0000
commitd0ee6c37962a73cee17fafb3d9f672d771fc79bd (patch)
treed110b16d4f3b3f678f63c562752a368f8322939b /comms
parent6581c3d74256594175284b15ae243c2657bb10cf (diff)
downloadFreeBSD-ports-d0ee6c37962a73cee17fafb3d9f672d771fc79bd.zip
FreeBSD-ports-d0ee6c37962a73cee17fafb3d9f672d771fc79bd.tar.gz
Fix statistic read and write.
PR: ports/70104 Submitted by: maintainer
Diffstat (limited to 'comms')
-rw-r--r--comms/bforce-kst/Makefile2
-rw-r--r--comms/bforce-kst/files/patch-bfstat.c10
-rw-r--r--comms/bforce-kst/files/patch-sess_stat.c20
3 files changed, 31 insertions, 1 deletions
diff --git a/comms/bforce-kst/Makefile b/comms/bforce-kst/Makefile
index 1a5c701..b6cac98 100644
--- a/comms/bforce-kst/Makefile
+++ b/comms/bforce-kst/Makefile
@@ -7,7 +7,7 @@
PORTNAME= bforce
PORTVERSION= 0.22.8.7
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= comms
MASTER_SITES= http://kst.spb.ru/bforce/
PKGNAMESUFFIX= -kst
diff --git a/comms/bforce-kst/files/patch-bfstat.c b/comms/bforce-kst/files/patch-bfstat.c
new file mode 100644
index 0000000..51cff17
--- /dev/null
+++ b/comms/bforce-kst/files/patch-bfstat.c
@@ -0,0 +1,10 @@
+--- bfutil/bfstat.c.orig Thu Nov 21 23:23:00 2002
++++ bfutil/bfstat.c Sat Aug 7 02:20:35 2004
+@@ -17,6 +17,7 @@
+ #include "logger.h"
+ #include "util.h"
+ #include "outbound.h"
++#include "session.h"
+
+ /*
+ * Command line options storage structure
diff --git a/comms/bforce-kst/files/patch-sess_stat.c b/comms/bforce-kst/files/patch-sess_stat.c
new file mode 100644
index 0000000..f693801
--- /dev/null
+++ b/comms/bforce-kst/files/patch-sess_stat.c
@@ -0,0 +1,20 @@
+--- 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,
OpenPOWER on IntegriCloud