aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authordemon <demon@FreeBSD.org>2003-02-11 23:14:00 +0800
committerdemon <demon@FreeBSD.org>2003-02-11 23:14:00 +0800
commit7975a8456df3e35d955577a41e70a16792dcba9b (patch)
tree408bf0ef379669abf3e70fbc83fe8bcb73b37221 /net
parent78a426da6c5a109b8dda0806db4ae8fa56682637 (diff)
downloadfreebsd-ports-gnome-7975a8456df3e35d955577a41e70a16792dcba9b.tar.gz
freebsd-ports-gnome-7975a8456df3e35d955577a41e70a16792dcba9b.tar.zst
freebsd-ports-gnome-7975a8456df3e35d955577a41e70a16792dcba9b.zip
Fixes for 64-bit platforms.
Submitted by: Corey Smith <csmith@bonddesk.com>
Diffstat (limited to 'net')
-rw-r--r--net/mrtg/files/patch-aa18
-rw-r--r--net/rrdtool/files/patch-al20
-rw-r--r--net/rrdtool10/files/patch-al20
3 files changed, 58 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;
diff --git a/net/rrdtool/files/patch-al b/net/rrdtool/files/patch-al
new file mode 100644
index 000000000000..9c459e8988bc
--- /dev/null
+++ b/net/rrdtool/files/patch-al
@@ -0,0 +1,20 @@
+--- src/parsetime.c.orig Fri Oct 11 14:39:46 2002
++++ src/parsetime.c Mon Feb 10 20:47:18 2003
+@@ -660,6 +660,7 @@
+ {
+ long mday=0, wday, mon, year = ptv->tm.tm_year;
+ int tlen;
++ time_t montime;
+
+ switch (sc_tokid) {
+ case YESTERDAY:
+@@ -713,7 +714,8 @@
+ tlen = strlen(sc_token);
+ mon = atol(sc_token);
+ if (mon > 10*356*24*60*60) {
+- ptv->tm=*localtime(&mon);
++ montime = mon;
++ ptv->tm=*localtime(&montime);
+ token();
+ break;
+ }
diff --git a/net/rrdtool10/files/patch-al b/net/rrdtool10/files/patch-al
new file mode 100644
index 000000000000..9c459e8988bc
--- /dev/null
+++ b/net/rrdtool10/files/patch-al
@@ -0,0 +1,20 @@
+--- src/parsetime.c.orig Fri Oct 11 14:39:46 2002
++++ src/parsetime.c Mon Feb 10 20:47:18 2003
+@@ -660,6 +660,7 @@
+ {
+ long mday=0, wday, mon, year = ptv->tm.tm_year;
+ int tlen;
++ time_t montime;
+
+ switch (sc_tokid) {
+ case YESTERDAY:
+@@ -713,7 +714,8 @@
+ tlen = strlen(sc_token);
+ mon = atol(sc_token);
+ if (mon > 10*356*24*60*60) {
+- ptv->tm=*localtime(&mon);
++ montime = mon;
++ ptv->tm=*localtime(&montime);
+ token();
+ break;
+ }