diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-01-04 20:49:33 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-01-04 20:49:33 +0000 |
commit | be231b057a9755d697e8f64a499e50222df4a481 (patch) | |
tree | 91de0fd39384e2b4cd0a0d719c8d6ef1d3ed23e0 /sys/dev/ic | |
parent | 6e66f793b01fc19f92ba30d6bda66c18043cf5b4 (diff) |
People doing time comparisons without using the time{r,spec}cmp macros are
doomed to do them incorrectly; ok krw@ millert@ tedu@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/ncr53c9x.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/ic/ncr53c9x.c b/sys/dev/ic/ncr53c9x.c index 61776725627..eb06ba0876e 100644 --- a/sys/dev/ic/ncr53c9x.c +++ b/sys/dev/ic/ncr53c9x.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ncr53c9x.c,v 1.25 2004/10/28 08:11:09 xsa Exp $ */ +/* $OpenBSD: ncr53c9x.c,v 1.26 2006/01/04 20:49:32 miod Exp $ */ /* $NetBSD: ncr53c9x.c,v 1.56 2000/11/30 14:41:46 thorpej Exp $ */ /* @@ -2679,8 +2679,7 @@ shortcut: if (NCRDMA_ISINTR(sc)) goto again; microtime(&cur); - } while (cur.tv_sec <= wait.tv_sec && - cur.tv_usec <= wait.tv_usec); + } while (timercmp(&cur, &wait, <=)); } goto out; } |