1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

Use time_t instead of long in a couple of places so this compiles on

a FreeBSD/Alpha box.
This commit is contained in:
Steve Price 1999-04-25 17:58:21 +00:00
parent 4a29fd906a
commit c381a607c5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=18130

29
math/sc/files/patch-ac Normal file
View File

@ -0,0 +1,29 @@
--- interp.c.orig Mon May 11 13:43:36 1992
+++ interp.c Tue Apr 20 18:55:25 1999
@@ -476,7 +476,7 @@
dodts(mo, day, yr)
int mo, day, yr;
{
- long trial;
+ time_t trial;
register struct tm *tp;
register int i;
register long jdate;
@@ -551,15 +551,13 @@
int which;
double when;
{
- long time();
-
static long t_cache;
static struct tm tm_cache;
struct tm *tp;
- long tloc;
+ time_t tloc;
if (which == NOW)
- return (double)time((long *)0);
+ return (double)time(NULL);
tloc = (long)when;