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 */ _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"