Skip to content

Commit 1fa8caf

Browse files
committed
fix call to gettimeofday()
as of `man gettimeofday` "The use of the timezone structure is obsolete; the tz argument should normally be specified as NULL."
1 parent bb9d397 commit 1fa8caf

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/test.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ static ulong64 epoch_usec(void)
7373
return cur_time;
7474
#else
7575
struct timeval tv;
76-
struct timezone tz;
77-
gettimeofday(&tv, &tz);
76+
gettimeofday(&tv, NULL);
7877
return (ulong64)(tv.tv_sec) * 1000000 + (ulong64)(tv.tv_usec); /* get microseconds */
7978
#endif
8079
}

0 commit comments

Comments
 (0)