summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2003-08-07 22:28:58 +0000
committerglewis <glewis@FreeBSD.org>2003-08-07 22:28:58 +0000
commit4ff7b8b385718b5fec2b08ff75b3142a627a79e2 (patch)
treecc7c38755a0e125c32db3ed1f27b4e21b46259c7 /games
parent7aa1e77dca894e0c281c1b64b9040334358f875d (diff)
downloadFreeBSD-ports-4ff7b8b385718b5fec2b08ff75b3142a627a79e2.zip
FreeBSD-ports-4ff7b8b385718b5fec2b08ff75b3142a627a79e2.tar.gz
. Some missed instances where we should be using time_t rather than long
for times.
Diffstat (limited to 'games')
-rw-r--r--games/moria/files/patch-source::save.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/games/moria/files/patch-source::save.c b/games/moria/files/patch-source::save.c
new file mode 100644
index 0000000..bea0b8b
--- /dev/null
+++ b/games/moria/files/patch-source::save.c
@@ -0,0 +1,40 @@
+$FreeBSD$
+
+--- source/save.c.orig Thu Aug 7 16:24:56 2003
++++ source/save.c Thu Aug 7 16:26:16 2003
+@@ -102,7 +102,7 @@
+ #endif
+
+ #if !defined(ATARIST_MWC)
+-#ifdef MAC
++#if defined(MAC) || defined(__FreeBSD__)
+ #include <time.h>
+ #else
+ long time();
+@@ -331,7 +331,7 @@
+ }
+
+ /* save the current time in the savefile */
+-#ifdef MAC
++#if defined(MAC) || defined(__FreeBSD__)
+ l = time((time_t *)0);
+ #else
+ l = time((long *)0);
+@@ -1029,7 +1029,7 @@
+ || (version_min == 2 && patch_level >= 2))
+ rd_long ((int32u *)&birth_date);
+ else
+-#ifdef MAC
++#if defined(MAC) || defined(__FreeBSD__)
+ birth_date = time((time_t *)0);
+ #else
+ birth_date = time((long *)0);
+@@ -1253,7 +1253,7 @@
+ /* rotate store inventory, depending on how old the save file */
+ /* is foreach day old (rounded up), call store_maint */
+ /* calculate age in seconds */
+-#ifdef MAC
++#if defined(MAC) || defined(__FreeBSD__)
+ start_time = time((time_t *)0);
+ #else
+ start_time = time((long *)0);
OpenPOWER on IntegriCloud