summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_clock.c
diff options
context:
space:
mode:
authormatthew <matthew@openbsd.org>2010-08-20 22:03:22 +0000
committermatthew <matthew@openbsd.org>2010-08-20 22:03:22 +0000
commit68145764a921cdb39ae28f5660123b4a0ce8e51b (patch)
treed9863a46ded2be9c7fe46a06cd3951ad3b8a5e52 /sys/kern/kern_clock.c
parentadd format strings implied by surplus arguments (diff)
downloadwireguard-openbsd-68145764a921cdb39ae28f5660123b4a0ce8e51b.tar.xz
wireguard-openbsd-68145764a921cdb39ae28f5660123b4a0ce8e51b.zip
Change hzto(9) and tvtohz(9) arguments to const pointers.
ok krw@, "of course" tedu@
Diffstat (limited to 'sys/kern/kern_clock.c')
-rw-r--r--sys/kern/kern_clock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c
index 5f703f0cbda..7a7911fbe40 100644
--- a/sys/kern/kern_clock.c
+++ b/sys/kern/kern_clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_clock.c,v 1.70 2010/01/14 23:12:11 schwarze Exp $ */
+/* $OpenBSD: kern_clock.c,v 1.71 2010/08/20 22:03:22 matthew Exp $ */
/* $NetBSD: kern_clock.c,v 1.34 1996/06/09 04:51:03 briggs Exp $ */
/*-
@@ -317,7 +317,7 @@ hardclock(struct clockframe *frame)
* compute the second argument to timeout_add() from an absolute time.
*/
int
-hzto(struct timeval *tv)
+hzto(const struct timeval *tv)
{
struct timeval now;
unsigned long ticks;
@@ -369,7 +369,7 @@ hzto(struct timeval *tv)
* Compute number of hz in the specified amount of time.
*/
int
-tvtohz(struct timeval *tv)
+tvtohz(const struct timeval *tv)
{
unsigned long ticks;
long sec, usec;