Skip to content

Commit

Permalink
Fix warnings related to timeval vs timeval32 operations
Browse files Browse the repository at this point in the history
  • Loading branch information
deadwood committed May 4, 2022
1 parent 62cd19b commit 99fc796
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion workbench/c/WaitX.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,10 @@ LONG MainEntry(struct ExecBase *SysBase)

if (clock)
{
GetSysTime(&TimerReq->tr_time); /* Get current System Time */
struct timeval tv;
GetSysTime(&tv); /* Get current System Time */
TimerReq->tr_time.tv_secs = tv.tv_secs;
TimerReq->tr_time.tv_micro = tv.tv_micro;
Amiga2Date(TimerReq->tr_time.tv_secs, clock); /* Fill in current date/time as default */

if (ArgArray[TEM_DATE])
Expand Down

0 comments on commit 99fc796

Please sign in to comment.