svn commit: r255009 - head/sys/dev/drm2
Jung-uk Kim
jkim at FreeBSD.org
Wed Aug 28 22:57:50 UTC 2013
Author: jkim
Date: Wed Aug 28 22:57:49 2013
New Revision: 255009
URL: http://svnweb.freebsd.org/changeset/base/255009
Log:
Fix a compiler warning. With this fix, a negative time can be converted to
a struct timeval and back to the original nanoseconds correctly.
Modified:
head/sys/dev/drm2/drm_irq.c
Modified: head/sys/dev/drm2/drm_irq.c
==============================================================================
--- head/sys/dev/drm2/drm_irq.c Wed Aug 28 22:12:56 2013 (r255008)
+++ head/sys/dev/drm2/drm_irq.c Wed Aug 28 22:57:49 2013 (r255009)
@@ -210,7 +210,7 @@ struct timeval
ns_to_timeval(const int64_t nsec)
{
struct timeval tv;
- uint32_t rem;
+ long rem;
if (nsec == 0) {
tv.tv_sec = 0;
More information about the svn-src-head
mailing list