diff options
author | 2013-07-01 06:29:10 +0000 | |
---|---|---|
committer | 2013-07-01 06:29:10 +0000 | |
commit | e0e660ccf2f800f166c35071ebb21c54ee57a0cc (patch) | |
tree | 16c86e6f53e8a0d41b309c2ca238ce09edd05f44 | |
parent | Pass all Kerberos man pages to a sed substitution to fix paths so that (diff) | |
download | wireguard-openbsd-e0e660ccf2f800f166c35071ebb21c54ee57a0cc.tar.xz wireguard-openbsd-e0e660ccf2f800f166c35071ebb21c54ee57a0cc.zip |
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@
-rw-r--r-- | sys/dev/pci/drm/drm_irq.c | 4 |
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; |