1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cov: keep time calculation ready for 2038

Be prepared ;) and keep arithmetic 64bit ready.
This commit is contained in:
Zdenek Kabelac 2021-09-09 22:37:36 +02:00
parent 3ce8db8b88
commit be1c2a1ae2

View File

@ -819,7 +819,7 @@ static void _adjust_time_for_granularity(struct time_info *info, struct tm *tm,
#define SECS_PER_MINUTE 60
#define SECS_PER_HOUR 3600
#define SECS_PER_DAY 86400
#define SECS_PER_DAY ((time_t)86400)
static int _days_in_month[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};