Use time_t for system time values

Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
Lukas Fleischer
2019-01-14 06:01:21 +01:00
parent 51f17fb9c6
commit 03340db72e
9 changed files with 129 additions and 129 deletions

View File

@@ -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);
}