aboutsummaryrefslogtreecommitdiff
path: root/net/mrtg
diff options
context:
space:
mode:
authorDmitry Sivachenko <demon@FreeBSD.org>2003-02-11 15:14:00 +0000
committerDmitry Sivachenko <demon@FreeBSD.org>2003-02-11 15:14:00 +0000
commitbb21fb5270f53e60b056431268b0643419a7bbaf (patch)
tree5aa3b3da7b2e5dbbccab2656b99a57b4801de184 /net/mrtg
parent38dbb75757a6afa1fe42f1f2452b4fae8ad82bf8 (diff)
downloadports-bb21fb5270f53e60b056431268b0643419a7bbaf.tar.gz
ports-bb21fb5270f53e60b056431268b0643419a7bbaf.zip
Notes
Diffstat (limited to 'net/mrtg')
-rw-r--r--net/mrtg/files/patch-aa18
1 files changed, 18 insertions, 0 deletions
diff --git a/net/mrtg/files/patch-aa b/net/mrtg/files/patch-aa
new file mode 100644
index 000000000000..cef552e65d13
--- /dev/null
+++ b/net/mrtg/files/patch-aa
@@ -0,0 +1,18 @@
+--- src/rateup.c.orig Sat Oct 19 05:06:55 2002
++++ src/rateup.c Mon Feb 10 22:55:06 2003
+@@ -830,12 +830,14 @@
+ struct HISTORY *hist;
+ unsigned long rd[5];
+ time_t cur;
++ long lasttime;
+
+ if ((fi = fopen(file,"r")) != NULL) {
+- if (fscanf(fi,"%ld %s %s\n",(long int *)&last.time,&last.in[0],&last.out[0]) != 3){
++ if (fscanf(fi,"%ld %s %s\n",&lasttime,&last.in[0],&last.out[0]) != 3){
+ fprintf(stderr,"Read Error: File %s lin 1\n",file);
+ retcode = 1;
+ }
++ last.time = lasttime;
+ cur = last.time;
+ x = histvalid=0;
+ hist = history;