$OpenBSD: patch-src_utils_c,v 1.2 2016/04/28 14:26:13 ajacoutot Exp $
--- src/utils.c.orig	Sun Mar 27 12:45:31 2016
+++ src/utils.c	Thu Apr 28 16:23:45 2016
@@ -350,17 +350,19 @@ long get_item_time(long date)
 		      get_item_min(date) * MININSEC);
 }
 
-int get_item_hour(long date)
+int get_item_hour(long date_l)
 {
 	struct tm lt;
+	time_t date = date_l;
 
 	localtime_r((time_t *) & date, &lt);
 	return lt.tm_hour;
 }
 
-int get_item_min(long date)
+int get_item_min(long date_l)
 {
 	struct tm lt;
+	time_t date = date_l;
 
 	localtime_r((time_t *) & date, &lt);
 	return lt.tm_min;
@@ -443,10 +445,11 @@ int date_cmp_day(time_t d1, time_t d2)
 }
 
 /* Return a string containing the date, given a date in seconds. */
-char *date_sec2date_str(long sec, const char *datefmt)
+char *date_sec2date_str(long sec_l, const char *datefmt)
 {
 	struct tm lt;
 	char *datestr = (char *)mem_calloc(BUFSIZ, sizeof(char));
+	time_t sec = sec_l;
 
 	if (sec == 0) {
 		strncpy(datestr, "0", BUFSIZ);
@@ -459,8 +462,10 @@ char *date_sec2date_str(long sec, const char *datefmt)
 }
 
 /* Generic function to format date. */
-void date_sec2date_fmt(long sec, const char *fmt, char *datef)
+void date_sec2date_fmt(long sec_l, const char *fmt, char *datef)
 {
+	time_t sec = sec_l;
+
 #if ENABLE_NLS
 	/* TODO: Find a better way to deal with localization and strftime(). */
 	char *locale_old = mem_strdup(setlocale(LC_ALL, NULL));
