svn commit: r224732 - head/sys/sys
Jonathan Anderson
jonathan at FreeBSD.org
Tue Aug 9 14:06:51 UTC 2011
Author: jonathan
Date: Tue Aug 9 14:06:50 2011
New Revision: 224732
URL: http://svn.freebsd.org/changeset/base/224732
Log:
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)
Modified:
head/sys/sys/time.h
Modified: head/sys/sys/time.h
==============================================================================
--- head/sys/sys/time.h Tue Aug 9 12:54:43 2011 (r224731)
+++ head/sys/sys/time.h Tue Aug 9 14:06:50 2011 (r224732)
@@ -195,24 +195,6 @@ timeval2bintime(const struct timeval *tv
((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 */
More information about the svn-src-all
mailing list