summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2013-08-28 22:57:49 +0000
committerjkim <jkim@FreeBSD.org>2013-08-28 22:57:49 +0000
commit6731dd428d26602eb9428e8d6bf309b24bea5ad2 (patch)
tree64ba58b53e99f0361ba095117bcb0d3e60e2a3c6
parent0b320ea37ccd739f0e5da8571e54526816726956 (diff)
downloadFreeBSD-src-6731dd428d26602eb9428e8d6bf309b24bea5ad2.zip
FreeBSD-src-6731dd428d26602eb9428e8d6bf309b24bea5ad2.tar.gz
Fix a compiler warning. With this fix, a negative time can be converted to
a struct timeval and back to the original nanoseconds correctly.
-rw-r--r--sys/dev/drm2/drm_irq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/drm2/drm_irq.c b/sys/dev/drm2/drm_irq.c
index 130c20f..3a60fa9 100644
--- a/sys/dev/drm2/drm_irq.c
+++ b/sys/dev/drm2/drm_irq.c
@@ -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;
OpenPOWER on IntegriCloud