Use time_t rather than long int as return type for mktime().

This commit is contained in:
curt 2000-09-18 17:00:16 +00:00
parent 0bcdb7eb70
commit 8c3de351b0

View File

@ -413,7 +413,7 @@ time_t sgTimeGetGMT(int year, int month, int day, int hour, int min, int sec)
# define TIMEZONE_OFFSET_WORKS 1
# endif
long int start = mktime(&mt);
time_t start = mktime(&mt);
FG_LOG( FG_EVENT, FG_DEBUG, "start1 = " << start );
// the ctime() call can screw up time progression on some versions