mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-24 04:03:34 -04:00
15 lines
330 B
Plaintext
15 lines
330 B
Plaintext
$NetBSD: patch-ab,v 1.1 2001/01/23 14:51:23 wiz Exp $
|
|
|
|
--- Clock.c.orig Fri Jan 6 16:20:00 1995
|
|
+++ Clock.c
|
|
@@ -598,8 +598,7 @@
|
|
*/
|
|
static int current_time()
|
|
{
|
|
- long time();
|
|
- long cl = time(0);
|
|
+ time_t cl = time(0);
|
|
struct tm *lt = localtime(&cl);
|
|
|
|
return 3600*lt->tm_hour + 60*lt->tm_min + lt->tm_sec;
|