pkgsrc/games/moria/patches/patch-af

24 lines
557 B
Text

$NetBSD: patch-af,v 1.1 1999/08/30 02:35:10 simonb Exp $
--- source/death.c.orig Fri Jul 22 11:47:16 1994
+++ source/death.c Sun Aug 29 09:28:44 1999
@@ -126,7 +126,7 @@
#ifndef VMS
#ifndef MAC
#if !defined(ATARIST_MWC) && !defined(AMIGA)
-long time();
+time_t time();
#endif
#endif
#endif
@@ -144,9 +144,9 @@
#ifdef MAC
clockvar = time((time_t *) 0);
#else
- clockvar = time((long *) 0);
+ clockvar = time((time_t *) 0);
#endif
- tmp = ctime(&clockvar);
+ tmp = ctime((time_t *)&clockvar);
tmp[10] = '\0';
(void) strcpy(day, tmp);
}