aboutsummaryrefslogtreecommitdiff
path: root/astro/sattrack
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>2000-07-28 11:04:55 +0000
committerThomas Gellekum <tg@FreeBSD.org>2000-07-28 11:04:55 +0000
commit8af5ef2e9d31db1fdfbd5e6edf4cc70886612324 (patch)
treec1a9a7d9a742de4a503555443554687e07d6abce /astro/sattrack
parentcac0e8e107642fa1556c1fd7d02d6f9aa52bdfb6 (diff)
downloadports-8af5ef2e9d31db1fdfbd5e6edf4cc70886612324.tar.gz
ports-8af5ef2e9d31db1fdfbd5e6edf4cc70886612324.zip
Notes
Diffstat (limited to 'astro/sattrack')
-rw-r--r--astro/sattrack/files/patch-aa2
-rw-r--r--astro/sattrack/files/patch-ab36
2 files changed, 26 insertions, 12 deletions
diff --git a/astro/sattrack/files/patch-aa b/astro/sattrack/files/patch-aa
index 8971dadd10d5..66ad920df4fd 100644
--- a/astro/sattrack/files/patch-aa
+++ b/astro/sattrack/files/patch-aa
@@ -131,7 +131,7 @@
#
! CPU = i386/FreeBSD
! CC_CMACH = -DFREEBSD -DIOCTL ${CFLAGS}
-! CC_LMACH = ${LFLAGS}
+! CC_LMACH = ${LDFLAGS}
! CC = gcc
#
diff --git a/astro/sattrack/files/patch-ab b/astro/sattrack/files/patch-ab
index 95b903786798..8ebeca310c62 100644
--- a/astro/sattrack/files/patch-ab
+++ b/astro/sattrack/files/patch-ab
@@ -1,11 +1,25 @@
---- sattrack/sattime.c~ Sat Jan 4 22:19:08 1997
-+++ sattrack/sattime.c Wed Jul 26 17:03:49 2000
-@@ -269,7 +269,7 @@
- if (gdnY < 50) /* allow 4 or 2 digit year specifications */
- gdnY += 2000;
- else
-- if (gdnY < 100)
-+ if (gdnY <= 100)
- gdnY += 1900;
-
- result = (long) ((((gdnY-1901)*1461) >> 2) + monthDays[gdnM-1] + gdnD+365);
+--- sattrack/sattime.c~ Thu Jul 27 15:38:07 2000
++++ sattrack/sattime.c Thu Jul 27 15:46:23 2000
+@@ -99,19 +99,18 @@
+ int *day, *month, *year, *yday, *hour, *min, *sec;
+
+ {
+- char timeString[80];
++ char timeString[26];
+
+ time_t timeofday;
+ struct tm *tm;
+
+ time(&timeofday);
+ tm = gmtime(&timeofday);
+- strncpy(timeString,asctime(tm),16);
+- timeString[16] = '\0';
++ strncpy(timeString,asctime(tm),26);
+
+ *day = tm->tm_mday;
+ *month = tm->tm_mon + 1;
+- *year = tm->tm_year;
++ *year = tm->tm_year + 1900;
+ *yday = tm->tm_yday + 1;
+ *hour = tm->tm_hour;
+ *min = tm->tm_min;