blob: 15511707ea4c002095a14793d5e87c68ee846d06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
$NetBSD: patch-ah,v 1.1 1999/08/30 02:35:10 simonb Exp $
--- source/misc1.c.orig Fri Jul 22 11:47:28 1994
+++ source/misc1.c Sun Aug 29 09:29:19 1999
@@ -29,7 +29,7 @@
#endif
#if !defined(ATARIST_MWC) && !defined(MAC) && !defined(VMS) && !defined(AMIGA)
-long time();
+time_t time();
#endif
struct tm *localtime();
@@ -48,7 +48,7 @@
#ifdef MAC
clock_var = time((time_t *)0);
#else
- clock_var = time((long *)0);
+ clock_var = time((time_t *)0);
#endif
else
clock_var = seed;
@@ -95,9 +95,9 @@
#ifdef MAC
clock_var = time((time_t *)0);
#else
- clock_var = time((long *)0);
+ clock_var = time((time_t *)0);
#endif
- tp = localtime(&clock_var);
+ tp = localtime((time_t *)&clock_var);
if (days[tp->tm_wday][tp->tm_hour+4] == 'X')
return TRUE;
else
|