aboutsummaryrefslogtreecommitdiffstats
path: root/astro
diff options
context:
space:
mode:
authornaddy <naddy@FreeBSD.org>2002-08-31 05:27:36 +0800
committernaddy <naddy@FreeBSD.org>2002-08-31 05:27:36 +0800
commit30e9353e92a49db842ab0f4fac4d1a5908f9e14c (patch)
tree4440c3515c7704326b511102ef76292237dfd02d /astro
parentff8f0c8dba0a6eb05d8a1d2afbbfecf0e55f7061 (diff)
downloadfreebsd-ports-gnome-30e9353e92a49db842ab0f4fac4d1a5908f9e14c.tar.gz
freebsd-ports-gnome-30e9353e92a49db842ab0f4fac4d1a5908f9e14c.tar.zst
freebsd-ports-gnome-30e9353e92a49db842ab0f4fac4d1a5908f9e14c.zip
Use time_t instead of assuming equivalence to long.
Approved by: maintainer timeout
Diffstat (limited to 'astro')
-rw-r--r--astro/wmmoonclock/files/patch-wmMoonClock.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/astro/wmmoonclock/files/patch-wmMoonClock.c b/astro/wmmoonclock/files/patch-wmMoonClock.c
new file mode 100644
index 000000000000..ce9d57dc3189
--- /dev/null
+++ b/astro/wmmoonclock/files/patch-wmMoonClock.c
@@ -0,0 +1,15 @@
+
+$FreeBSD$
+
+--- wmMoonClock.c.orig Thu Aug 15 18:15:26 2002
++++ wmMoonClock.c Thu Aug 15 18:15:51 2002
+@@ -162,7 +162,8 @@
+ int i, n, k, j, ImageNumber;
+ int Year, Month, DayOfWeek, DayOfMonth;
+ int Hours, Mins, Secs, OldSecs, digit, xoff, xsize;
+- long CurrentLocalTime, CurrentGMTTime, date;
++ time_t CurrentLocalTime, CurrentGMTTime;
++ long date;
+ double UT, val, RA, DEC, UTRise, UTSet, LocalHour, hour24();
+ int D, H, M, S, sgn, A, B, q;
+ char str[10];