- 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 5b3d18a3d3
commit a8e5bcded9
1 changed files with 1 additions and 1 deletions

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;