summaryrefslogtreecommitdiff
path: root/misc/sc/patches/patch-ac
diff options
context:
space:
mode:
authorsommerfeld <sommerfeld>1999-06-21 15:05:24 +0000
committersommerfeld <sommerfeld>1999-06-21 15:05:24 +0000
commit14c43a46c039cb61744db90ada46ad65cfb329e9 (patch)
tree83f7c16c201ee4909135ed39a14aaa6d4fed096e /misc/sc/patches/patch-ac
parent17c10982d8bda3994102a9d588bde0a3341fe1b0 (diff)
downloadpkgsrc-14c43a46c039cb61744db90ada46ad65cfb329e9.tar.gz
Package for sc-6.21, a simple spreadsheet calculator from the old
comp.sources.unix archive.
Diffstat (limited to 'misc/sc/patches/patch-ac')
-rw-r--r--misc/sc/patches/patch-ac31
1 files changed, 31 insertions, 0 deletions
diff --git a/misc/sc/patches/patch-ac b/misc/sc/patches/patch-ac
new file mode 100644
index 00000000000..b41b36b1bf3
--- /dev/null
+++ b/misc/sc/patches/patch-ac
@@ -0,0 +1,31 @@
+$NetBSD: patch-ac,v 1.1 1999/06/21 15:05:25 sommerfeld Exp $
+
+--- 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;
+