aboutsummaryrefslogtreecommitdiffstats
path: root/astro/sattrack
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>2000-07-28 19:04:55 +0800
committertg <tg@FreeBSD.org>2000-07-28 19:04:55 +0800
commit613ae557d711213647fe516c2fe3f56e1a52026d (patch)
tree62ced61fc7e035e7081fb342e55f36e167e19a97 /astro/sattrack
parentc1162f73f7166754119dd3bbd7d66ef84d311894 (diff)
downloadfreebsd-ports-gnome-613ae557d711213647fe516c2fe3f56e1a52026d.tar.gz
freebsd-ports-gnome-613ae557d711213647fe516c2fe3f56e1a52026d.tar.zst
freebsd-ports-gnome-613ae557d711213647fe516c2fe3f56e1a52026d.zip
No, I don't smoke. All evidence to the contrary is just the result of
an overactive imagination. Spell `LDFLAGS' correctly. Fix Y2K problem without introducing a Y2001 problem.
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;