diff options
author | Dan McDonald <danmcd@joyent.com> | 2020-09-22 10:39:49 -0400 |
---|---|---|
committer | Dan McDonald <danmcd@joyent.com> | 2020-09-22 10:39:49 -0400 |
commit | 267e12a7d9bf6e5fcefb9cc00f46bfff0dc5226e (patch) | |
tree | 19a3941920d0039c35d53a5cbee189b5ca51995a /usr/src/lib/libc/i386/sys | |
parent | 517abc5c668925e6092495bf332233c3599980d2 (diff) | |
parent | e9faba760cdf80d7dfa110fe0830917ab94668c2 (diff) | |
download | illumos-joyent-vpc.tar.gz |
Merge branch 'master' into vpcvpc
Diffstat (limited to 'usr/src/lib/libc/i386/sys')
-rw-r--r-- | usr/src/lib/libc/i386/sys/gettimeofday.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/src/lib/libc/i386/sys/gettimeofday.c b/usr/src/lib/libc/i386/sys/gettimeofday.c index c2396e582a..a4c62aeb68 100644 --- a/usr/src/lib/libc/i386/sys/gettimeofday.c +++ b/usr/src/lib/libc/i386/sys/gettimeofday.c @@ -40,9 +40,10 @@ gettimeofday(struct timeval *tv, void *tz) * and layout of their members, the conversion can be done in-place. */ if (cp != NULL && __cp_can_gettime(cp) != 0) { - __cp_clock_gettime_realtime(cp, (struct timespec *)tv); + (void) __cp_clock_gettime_realtime(cp, (struct timespec *)tv); } else { - __clock_gettime_sys(CLOCK_REALTIME, (struct timespec *)tv); + (void) __clock_gettime_sys(CLOCK_REALTIME, + (struct timespec *)tv); } /* Convert from tv_nsec to tv_usec */ tv->tv_usec /= 1000; |