From: curt Date: Mon, 18 Sep 2000 17:00:16 +0000 (+0000) Subject: Use time_t rather than long int as return type for mktime(). X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8c3de351b039e67ce203733ce8790490a0774a21;p=simgear.git Use time_t rather than long int as return type for mktime(). --- diff --git a/simgear/timing/sg_time.cxx b/simgear/timing/sg_time.cxx index e10400c3..f9467739 100644 --- a/simgear/timing/sg_time.cxx +++ b/simgear/timing/sg_time.cxx @@ -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