summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2013-07-01 06:29:11 +0000
committerBrad Smith <brad@cvs.openbsd.org>2013-07-01 06:29:11 +0000
commit656ce59fd2697792d0605240ebb13ccc150fb1eb (patch)
tree84761505142d66cb46b9d58d362da363ae029274 /sys
parent42077e17e861bf0d7b0a810e2f3eaec47240bffa (diff)
Within ns_to_timeval() change the rem field type from unsigned to signed.
Pointed out by LLVM. drm_irq.c:154:10: error: comparison of unsigned expression < 0 is always false kettenis@ says it should be signed and this is what the equivalent Linux code does. ok jsg@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/drm/drm_irq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/drm_irq.c b/sys/dev/pci/drm/drm_irq.c
index 6e9adf2abce..f38594542f6 100644
--- a/sys/dev/pci/drm/drm_irq.c
+++ b/sys/dev/pci/drm/drm_irq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: drm_irq.c,v 1.45 2013/04/22 15:10:55 deraadt Exp $ */
+/* $OpenBSD: drm_irq.c,v 1.46 2013/07/01 06:29:10 brad Exp $ */
/**
* \file drm_irq.c
* IRQ support
@@ -141,7 +141,7 @@ struct timeval
ns_to_timeval(const int64_t nsec)
{
struct timeval tv;
- uint32_t rem;
+ int32_t rem;
if (nsec == 0) {
tv.tv_sec = 0;