pkgsrc/time/gnyaclock/patches/patch-ab

14 lines
330 B
Text

$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;