summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2000-03-23 11:07:35 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2000-03-23 11:07:35 +0000
commit3fb72214e03d02f76ad6c4019cc6732b78968057 (patch)
tree654eae1ef0e72287e6c06392d0db469e870ec05b /sys/kern
parent16e2f0257d583379f6807177c40d65242c7294b3 (diff)
Provide methods to check if a timeout was initalized and if it is scheduled.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_timeout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c
index f6274b691e5..7ef15bb9f82 100644
--- a/sys/kern/kern_timeout.c
+++ b/sys/kern/kern_timeout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_timeout.c,v 1.2 2000/03/23 10:27:05 art Exp $ */
+/* $OpenBSD: kern_timeout.c,v 1.3 2000/03/23 11:07:34 art Exp $ */
/*
* Copyright (c) 2000 Artur Grabowski <art@openbsd.org>
* All rights reserved.
@@ -100,7 +100,7 @@ timeout_set(to, fn, arg)
to->to_func = fn;
to->to_arg = arg;
- to->to_flags = 0;
+ to->to_flags = TIMEOUT_INITIALIZED;
}
void
@@ -237,7 +237,7 @@ timeout(fn, arg, to_ticks)
timeout_list_unlock(s);
timeout_set(to, fn, arg);
- to->to_flags = TIMEOUT_STATIC;
+ to->to_flags |= TIMEOUT_STATIC;
timeout_add(to, to_ticks);
}