Skip to content

Commit c403ef0

Browse files
committed
rtl_test: fix build on Mac OS
Thanks to mot for reporting. closes #3130 Signed-off-by: Steve Markgraf <[email protected]>
1 parent 566a1b9 commit c403ef0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/rtl_test.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ static int ppm_gettime(struct time_generic *tg)
162162
struct timeval tv;
163163

164164
rv = gettimeofday(&tv, NULL);
165-
ts->tv_sec = tv.tv_sec;
166-
ts->tv_nsec = tv.tv_usec * 1000;
165+
tg->tv_sec = tv.tv_sec;
166+
tg->tv_nsec = tv.tv_usec * 1000;
167167
#endif
168168
return rv;
169169
}

0 commit comments

Comments
 (0)