Use time_t instead of assuming equivalence to long.

Approved by:	maintainer timeout
This commit is contained in:
Christian Weisgerber 2002-08-30 21:27:36 +00:00
parent c648d277c4
commit 1761a9c441
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=65337

View file

@ -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];