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:
parent
3ce8db8b88
commit
be1c2a1ae2
@ -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};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user