summaryrefslogtreecommitdiff
path: root/sys/compat
diff options
context:
space:
mode:
authorThomas Nordin <nordin@cvs.openbsd.org>2003-12-02 03:46:46 +0000
committerThomas Nordin <nordin@cvs.openbsd.org>2003-12-02 03:46:46 +0000
commit2d410517633c8030eb5ea40edcb971f0c319d4b4 (patch)
tree762451e97559fda6e52fd3c80e084a2ec20a62e0 /sys/compat
parentdb58e6d0bcbbec74a2b517e17c8a7808d50677a4 (diff)
Count from now, not from the epoch, to arm alarm.
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index 432513b682c..0c31e2d1d28 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_misc.c,v 1.54 2003/08/15 20:32:16 tedu Exp $ */
+/* $OpenBSD: linux_misc.c,v 1.55 2003/12/02 03:46:45 nordin Exp $ */
/* $NetBSD: linux_misc.c,v 1.27 1996/05/20 01:59:21 fvdl Exp $ */
/*-
@@ -887,7 +887,7 @@ linux_sys_alarm(p, v, retval)
}
if (timerisset(&it.it_value)) {
- timo = hzto(&it.it_value);
+ timo = tvtohz(&it.it_value);
if (timo <= 0)
timo = 1;
timeradd(&it.it_value, &time, &it.it_value);