diff options
author | Paul Selkirk <paul@psgd.org> | 2017-10-11 21:26:27 -0400 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2017-10-11 21:26:27 -0400 |
commit | b159bf0bb24a99c7d3ff1b3855f840add63198e5 (patch) | |
tree | 9e3861da94bb69412025ef51db5a686d717d7a84 /projects/libhal-test/gettimeofday.c | |
parent | 4026cce22d330d3b9c4b218dd2e19d4f60412e05 (diff) |
Cleanup 'unused parameter' warnings, a couple of which are actual coding errors.
Diffstat (limited to 'projects/libhal-test/gettimeofday.c')
-rw-r--r-- | projects/libhal-test/gettimeofday.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/projects/libhal-test/gettimeofday.c b/projects/libhal-test/gettimeofday.c index b13485d..f7a87f1 100644 --- a/projects/libhal-test/gettimeofday.c +++ b/projects/libhal-test/gettimeofday.c @@ -56,6 +56,8 @@ int gettimeofday(struct timeval *tv, struct timezone *tz) { uint32_t tick = HAL_GetTick(); /* uptime in ms */ + tz = tz; + tv->tv_sec = tick / 1000; tv->tv_usec = (tick % 1000) * 1000; |