freebsd-ports/games/f1spirit-remake/files/patch-sources-CPlayer.cpp
Dmitry Marakasov 3037cb61c7 - Trim Makefile headers
- Drop ABI versions from LIB_DEPENDS
- OptionsNG
- Pet portlint
- Switch to dynamic plist where useful
2013-06-18 11:46:51 +00:00

42 lines
1.1 KiB
C++

--- sources/CPlayer.cpp.orig 2008-05-17 02:59:23.000000000 +0400
+++ sources/CPlayer.cpp 2008-05-17 03:01:31.000000000 +0400
@@ -204,7 +204,8 @@
struct tm *today;
gettimeofday(&ttime, NULL);
- today=localtime(&(ttime.tv_sec));
+ time_t tmp = (time_t)ttime.tv_sec;
+ today=localtime(&tmp);
position_date[i].year=today->tm_year;
position_date[i].month=today->tm_mon;
@@ -231,7 +232,8 @@
struct tm *today;
gettimeofday(&ttime, NULL);
- today=localtime(&(ttime.tv_sec));
+ time_t tmp = (time_t)ttime.tv_sec;
+ today=localtime(&tmp);
time_date[i].year=today->tm_year;
time_date[i].month=today->tm_mon;
@@ -258,7 +260,8 @@
struct tm *today;
gettimeofday(&ttime, NULL);
- today=localtime(&(ttime.tv_sec));
+ time_t tmp = (time_t)ttime.tv_sec;
+ today=localtime(&tmp);
lap_date[i].year=today->tm_year;
lap_date[i].month=today->tm_mon;
@@ -285,7 +288,8 @@
struct tm *today;
gettimeofday(&ttime, NULL);
- today=localtime(&(ttime.tv_sec));
+ time_t tmp = (time_t)ttime.tv_sec;
+ today=localtime(&tmp);
position_date[i].year=today->tm_year;
position_date[i].month=today->tm_mon;