$OpenBSD: patch-src_util_c,v 1.1.1.1 2010/07/08 16:18:06 pea Exp $
--- src/util.c.orig	Wed Jun 23 09:44:05 2010
+++ src/util.c	Wed Jun 23 09:51:41 2010
@@ -68,7 +68,7 @@ static void render_time(char *buf, int max)
 	struct tm *tm;
 	struct timeval tv;
 	gettimeofday(&tv, NULL);
-	tm = localtime(&tv.tv_sec);
+	tm = localtime((time_t *)&tv.tv_sec);
 	snprintf(buf, max, "%04d-%02d-%02d %02d:%02d:%02d.%03d",
 		 tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday,
 		 tm->tm_hour, tm->tm_min, tm->tm_sec,
