]> git.mxchange.org Git - simgear.git/blobdiff - simgear/timing/sg_time.cxx
Oops, references to built libs need to be relative to $(top_builddir)
[simgear.git] / simgear / timing / sg_time.cxx
index 0013d3b0e837c7ef3584b107466ef2b5d495d9e7..f94677390613c064be587c9afec37d2db521b4ec 100644 (file)
@@ -91,6 +91,7 @@ SGTime::SGTime( double lon, double lat, const string& root )
        // cout << "Using zonename = " << zonename << endl;
     } else {
        tzContainer = NULL;
+       zonename = NULL;
     }
 }
 
@@ -412,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