aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Markgraf <steve@steve-m.de>2018-04-26 23:51:15 +0200
committerSteve Markgraf <steve@steve-m.de>2018-04-26 23:51:15 +0200
commitc403ef0bc1e3ac586495ad0338c56f47e2026b20 (patch)
tree918ae81cb7097b45d9d29dab73fbf109b683613a
parent566a1b942f2aa38e044f9199f5294f3f91ff74ff (diff)
rtl_test: fix build on Mac OS
Thanks to mot for reporting. closes #3130 Signed-off-by: Steve Markgraf <steve@steve-m.de>
-rw-r--r--src/rtl_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rtl_test.c b/src/rtl_test.c
index 42d2c94..9b44097 100644
--- a/src/rtl_test.c
+++ b/src/rtl_test.c
@@ -162,8 +162,8 @@ static int ppm_gettime(struct time_generic *tg)
struct timeval tv;
rv = gettimeofday(&tv, NULL);
- ts->tv_sec = tv.tv_sec;
- ts->tv_nsec = tv.tv_usec * 1000;
+ tg->tv_sec = tv.tv_sec;
+ tg->tv_nsec = tv.tv_usec * 1000;
#endif
return rv;
}