diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2000-11-17 05:18:45 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2000-11-17 05:18:45 +0000 |
commit | e1d37c5b1c9474e50b0c80d3bffe040389447bc3 (patch) | |
tree | 675b18ee2fa969e373d4551e8af2ff284acc3eea | |
parent | 4d293c0c3f2dd075b20bd53dec46f5ad901f03d0 (diff) |
correct timersub
-rw-r--r-- | sys/kern/kern_event.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c index ec5e4528d89..73f0f29a0e0 100644 --- a/sys/kern/kern_event.c +++ b/sys/kern/kern_event.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_event.c,v 1.2 2000/11/16 20:24:35 mickey Exp $ */ +/* $OpenBSD: kern_event.c,v 1.3 2000/11/17 05:18:44 provos Exp $ */ /*- * Copyright (c) 1999,2000 Jonathan Lemon <jlemon@FreeBSD.org> @@ -550,7 +550,7 @@ retry: if (timercmp(&time, &atv, >=)) goto done; ttv = atv; - timersub(&ttv, &ttv, &time); + timersub(&ttv, &time, &ttv); timeout = ttv.tv_sec > 24 * 60 * 60 ? 24 * 60 * 60 * hz : hzto(&ttv); } |