- 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:
Diane Bruce 2006-09-23 21:01:09 +00:00
parent b406127ca9
commit acf1c1cd98

View File

@ -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;