summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorblambert <blambert@openbsd.org>2009-07-11 13:28:36 +0000
committerblambert <blambert@openbsd.org>2009-07-11 13:28:36 +0000
commitcb5fcd9f8ae81440f117925d5fc4a94b3730e57e (patch)
tree66d1ecd2a279cff77bc5202524d4af9d853fd639 /sys
parentfix the RTM_VERSION check in the evil loop to really get (diff)
downloadwireguard-openbsd-cb5fcd9f8ae81440f117925d5fc4a94b3730e57e.tar.xz
wireguard-openbsd-cb5fcd9f8ae81440f117925d5fc4a94b3730e57e.zip
timeout_add -> timeout_add_msec
Been running this on my laptop for a while now with no apparent ill effects. originally from a longer list from grange@ ok krw@ as part of that list
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_wpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_wpi.c b/sys/dev/pci/if_wpi.c
index e8772f1e778..d52562647fe 100644
--- a/sys/dev/pci/if_wpi.c
+++ b/sys/dev/pci/if_wpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wpi.c,v 1.88 2009/06/02 16:28:21 damien Exp $ */
+/* $OpenBSD: if_wpi.c,v 1.89 2009/07/11 13:28:36 blambert Exp $ */
/*-
* Copyright (c) 2006-2008
@@ -1095,7 +1095,7 @@ wpi_calib_timeout(void *arg)
sc->calib_cnt = 0;
}
/* Automatic rate control triggered every 500ms. */
- timeout_add(&sc->calib_to, hz / 2);
+ timeout_add_msec(&sc->calib_to, 500);
}
int