From 03340db72e8c92f84d4a2425a1a5b74ce76f2df4 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Mon, 14 Jan 2019 06:01:21 +0100 Subject: Use time_t for system time values Signed-off-by: Lukas Fleischer --- src/ui-calendar.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ui-calendar.c') diff --git a/src/ui-calendar.c b/src/ui-calendar.c index 407f294..10ae5cb 100644 --- a/src/ui-calendar.c +++ b/src/ui-calendar.c @@ -743,7 +743,7 @@ void ui_calendar_move(enum move move, int count) } /* Returns the beginning of current year as a long. */ -long ui_calendar_start_of_year(void) +time_t ui_calendar_start_of_year(void) { time_t timer; struct tm tm; @@ -757,10 +757,10 @@ long ui_calendar_start_of_year(void) tm.tm_sec = 0; timer = mktime(&tm); - return (long)timer; + return timer; } -long ui_calendar_end_of_year(void) +time_t ui_calendar_end_of_year(void) { time_t timer; struct tm tm; @@ -775,5 +775,5 @@ long ui_calendar_end_of_year(void) tm.tm_year++; timer = mktime(&tm); - return (long)(timer - 1); + return (timer - 1); } -- cgit v1.2.3-54-g00ecf