summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2018-05-28 18:05:43 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2018-05-28 18:05:43 +0000
commite5fd359552a5926faf575c3645451d5df40e7efe (patch)
tree9dac3295f4bdff8e45cffdac400fb992bd050a74 /sys/kern
parent5653eb3789727e127d7eb698efe3e612e68c1241 (diff)
Constipate a bunch of time functions
ok tb@ kettenis@
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_tc.c6
-rw-r--r--sys/kern/kern_time.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c
index 2f3f92249ca..9aa44703ac4 100644
--- a/sys/kern/kern_tc.c
+++ b/sys/kern/kern_tc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_tc.c,v 1.32 2018/04/28 15:44:59 jasper Exp $ */
+/* $OpenBSD: kern_tc.c,v 1.33 2018/05/28 18:05:42 guenther Exp $ */
/*
* Copyright (c) 2000 Poul-Henning Kamp <phk@FreeBSD.org>
@@ -297,7 +297,7 @@ tc_getfrequency(void)
* XXX: not locked.
*/
void
-tc_setrealtimeclock(struct timespec *ts)
+tc_setrealtimeclock(const struct timespec *ts)
{
struct timespec ts2;
struct bintime bt, bt2;
@@ -326,7 +326,7 @@ tc_setrealtimeclock(struct timespec *ts)
* XXX: not locked.
*/
void
-tc_setclock(struct timespec *ts)
+tc_setclock(const struct timespec *ts)
{
struct bintime bt, bt2;
#ifndef SMALL_KERNEL
diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c
index 8d6a8333f38..5925c021f04 100644
--- a/sys/kern/kern_time.c
+++ b/sys/kern/kern_time.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_time.c,v 1.102 2018/05/22 18:33:41 cheloha Exp $ */
+/* $OpenBSD: kern_time.c,v 1.103 2018/05/28 18:05:42 guenther Exp $ */
/* $NetBSD: kern_time.c,v 1.20 1996/02/18 11:57:06 fvdl Exp $ */
/*
@@ -63,7 +63,7 @@ int64_t adjtimedelta; /* unapplied time correction (microseconds) */
/* This function is used by clock_settime and settimeofday */
int
-settime(struct timespec *ts)
+settime(const struct timespec *ts)
{
struct timespec now;