diff options
author | Toomas Soome <tsoome@me.com> | 2020-09-10 13:09:22 +0300 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2020-09-12 00:41:29 +0300 |
commit | 93dc830ecbbcd243760848e27a0f901125432b04 (patch) | |
tree | df1da35f3ca5a07347466ceafe6753ab9997cf54 /usr/src/lib | |
parent | 92db730eedd4fcf11958d5b89b6d63f99488d594 (diff) | |
download | illumos-joyent-93dc830ecbbcd243760848e27a0f901125432b04.tar.gz |
13129 libc: gettimeofday() error: unchecked function return
Reviewed by: Marco van Wieringen <mvw@planets.elm.net>
Reviewed by: Patrick Mooney <pmooney@pfmooney.com>
Approved by: Robert Mustacchi <rm@fingolfin.org>
Diffstat (limited to 'usr/src/lib')
-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; |