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;
_______________________________________________
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"

Reply via email to