diff options
author | jkim <jkim@FreeBSD.org> | 2013-08-28 22:57:49 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2013-08-28 22:57:49 +0000 |
commit | 6731dd428d26602eb9428e8d6bf309b24bea5ad2 (patch) | |
tree | 64ba58b53e99f0361ba095117bcb0d3e60e2a3c6 | |
parent | 0b320ea37ccd739f0e5da8571e54526816726956 (diff) | |
download | FreeBSD-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.c | 2 |
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; |