diff options
author | jonathan <jonathan@FreeBSD.org> | 2011-08-09 14:06:50 +0000 |
---|---|---|
committer | jonathan <jonathan@FreeBSD.org> | 2011-08-09 14:06:50 +0000 |
commit | 2fc8ad1901361a8c45cc8f83bf0eecd5da604add (patch) | |
tree | ff7621a46bfc31f0f4c8921727cc3b20b16bded2 | |
parent | d218e8cbbc531ecda2621a877543e58d0b03fe6c (diff) | |
download | FreeBSD-src-2fc8ad1901361a8c45cc8f83bf0eecd5da604add.zip FreeBSD-src-2fc8ad1901361a8c45cc8f83bf0eecd5da604add.tar.gz |
Remove timeval2timespec and its converse, since we already have
TIMEVAL_TO_TIMESPEC() in <sys/timespec.h>.
Spotted by: bde
Approved by: re (kib), mentor (rwatson)
-rw-r--r-- | sys/sys/time.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/sys/sys/time.h b/sys/sys/time.h index 52226e0..82bbd97 100644 --- a/sys/sys/time.h +++ b/sys/sys/time.h @@ -195,24 +195,6 @@ timeval2bintime(const struct timeval *tv, struct bintime *bt) ((tvp)->tv_usec cmp (uvp)->tv_usec) : \ ((tvp)->tv_sec cmp (uvp)->tv_sec)) -/* Conversion between timespec and timeval. */ - -static __inline void -timeval2timespec(const struct timeval *tv, struct timespec *ts) -{ - - ts->tv_sec = tv->tv_sec; - ts->tv_nsec = 1000 * tv->tv_usec; -} - -static __inline void -timespec2timeval(const struct timespec *ts, struct timeval *tv) -{ - - tv->tv_sec = ts->tv_sec; - tv->tv_usec = ts->tv_nsec / 1000; -} - /* timevaladd and timevalsub are not inlined */ #endif /* _KERNEL */ |