Date: Wed, 28 Aug 2013 22:57:50 +0000 (UTC) From: Jung-uk Kim <jkim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r255009 - head/sys/dev/drm2 Message-ID: <201308282257.r7SMvoQ6049410@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308282257.r7SMvoQ6049410>