mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-26 22:28:41 -05:00
- shut up a warning
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/trunk@313 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
b406127ca9
commit
acf1c1cd98
@ -50,7 +50,7 @@ void GetSystemTime(SYSTEMTIME *st){
|
||||
struct timeval tmptimeofday;
|
||||
struct tm tmptmtime;
|
||||
gettimeofday(&tmptimeofday,NULL);
|
||||
gmtime_r(&tmptimeofday.tv_sec,&tmptmtime);
|
||||
gmtime_r((const time_t *)&tmptimeofday.tv_sec,&tmptmtime);
|
||||
st->Year = (short)tmptmtime.tm_year;
|
||||
st->Month = (short)tmptmtime.tm_year;
|
||||
st->DayOfWeek = (short)tmptmtime.tm_wday;
|
||||
|
Loading…
Reference in New Issue
Block a user