diff options
author | 2003-12-02 03:46:45 +0000 | |
---|---|---|
committer | 2003-12-02 03:46:45 +0000 | |
commit | 82ce0b8a73326d93adafc13a6320898fa4fa7b45 (patch) | |
tree | be3ae5335ff8100a94a5e75561be9a492de3176c | |
parent | do not deref null ptr in uvm_markbad() returned from swapdrum_getsdp() as others callers do (diff) | |
download | wireguard-openbsd-82ce0b8a73326d93adafc13a6320898fa4fa7b45.tar.xz wireguard-openbsd-82ce0b8a73326d93adafc13a6320898fa4fa7b45.zip |
Count from now, not from the epoch, to arm alarm.
-rw-r--r-- | sys/compat/linux/linux_misc.c | 4 |
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); |