From e1d37c5b1c9474e50b0c80d3bffe040389447bc3 Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Fri, 17 Nov 2000 05:18:45 +0000 Subject: correct timersub --- sys/kern/kern_event.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern') 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 @@ -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); } -- cgit v1.2.3