patch-src_logstalgia_cpp 934 B

12345678910111213141516171819202122
  1. $OpenBSD: patch-src_logstalgia_cpp,v 1.3 2016/03/15 15:03:57 gonzalo Exp $
  2. --- src/logstalgia.cpp.orig Tue Oct 20 17:32:05 2015
  3. +++ src/logstalgia.cpp Sun Mar 13 23:44:44 2016
  4. @@ -395,7 +395,7 @@ std::string Logstalgia::dateAtPosition(float percent)
  5. time_t timestamp = le.timestamp;
  6. - struct tm* timeinfo = localtime ( &timestamp );
  7. + struct tm *timeinfo = localtime( (const time_t *)(&timestamp) );
  8. strftime(datestr, 256, "%H:%M:%S %B %d, %Y", timeinfo);
  9. date = std::string(datestr);
  10. }
  11. @@ -975,7 +975,7 @@ void Logstalgia::logic(float t, float dt) {
  12. char datestr[256];
  13. char timestr[256];
  14. - struct tm* timeinfo = localtime ( &currtime );
  15. + struct tm *timeinfo = localtime( (const time_t *)(&currtime) );
  16. strftime(datestr, 256, "%A, %B %d, %Y", timeinfo);
  17. strftime(timestr, 256, "%X", timeinfo);