openbsd-ports/misc/calentool/patches/patch-utils_c

13 lines
299 B
Plaintext
Raw Normal View History

2003-06-17 22:47:59 -04:00
$OpenBSD: patch-utils_c,v 1.1 2003/06/18 02:48:00 avsm Exp $
--- utils.c.orig Wed Sep 30 03:38:24 1998
+++ utils.c Wed Jun 18 03:41:50 2003
@@ -170,7 +170,7 @@ get_today()
#else
gettimeofday(&tv, 0);
#endif
- tm = localtime(&tv.tv_sec);
+ tm = localtime((time_t*)&tv.tv_sec);
today = *tm;