summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Dempsky <matthew@cvs.openbsd.org>2010-08-20 22:03:23 +0000
committerMatthew Dempsky <matthew@cvs.openbsd.org>2010-08-20 22:03:23 +0000
commitc4fdb193b9a4d4185ee1a97405cdca6799e033d8 (patch)
tree3fa61c8fa11e689caff1a7b21324afb7cb8c0a0d
parent374f75aed1279c61227d40b30b701863bc0e6ebb (diff)
Change hzto(9) and tvtohz(9) arguments to const pointers.
ok krw@, "of course" tedu@
-rw-r--r--share/man/man9/hzto.96
-rw-r--r--share/man/man9/tvtohz.96
-rw-r--r--sys/kern/kern_clock.c6
-rw-r--r--sys/sys/systm.h6
4 files changed, 12 insertions, 12 deletions
diff --git a/share/man/man9/hzto.9 b/share/man/man9/hzto.9
index 8a5b2a0dca3..f4c1a03486c 100644
--- a/share/man/man9/hzto.9
+++ b/share/man/man9/hzto.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: hzto.9,v 1.6 2007/05/31 19:20:00 jmc Exp $
+.\" $OpenBSD: hzto.9,v 1.7 2010/08/20 22:03:22 matthew Exp $
.\"
.\" Copyright (c) 1999 Marc Espie
.\" All rights reserved.
@@ -23,7 +23,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: August 20 2010 $
.Dt HZTO 9
.Os
.Sh NAME
@@ -34,7 +34,7 @@
.Fd #include <sys/time.h>
.Fd #include <sys/systm.h>
.Ft int
-.Fn hzto "struct timeval *tv"
+.Fn hzto "const struct timeval *tv"
.Sh DESCRIPTION
The
.Fn hzto
diff --git a/share/man/man9/tvtohz.9 b/share/man/man9/tvtohz.9
index c9fb7805436..90ebd3a5e99 100644
--- a/share/man/man9/tvtohz.9
+++ b/share/man/man9/tvtohz.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tvtohz.9,v 1.4 2007/05/31 19:20:01 jmc Exp $
+.\" $OpenBSD: tvtohz.9,v 1.5 2010/08/20 22:03:22 matthew Exp $
.\"
.\" Copyright (c) 1999 Marc Espie
.\" All rights reserved.
@@ -23,7 +23,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: August 20 2010 $
.Dt TVTOHZ 9
.Os
.Sh NAME
@@ -34,7 +34,7 @@
.Fd #include <sys/time.h>
.Fd #include <sys/systm.h>
.Ft int
-.Fn tvtohz "struct timeval *tv"
+.Fn tvtohz "const struct timeval *tv"
.Sh DESCRIPTION
The
.Fn tvtohz
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;
diff --git a/sys/sys/systm.h b/sys/sys/systm.h
index 6a13ae2c8da..057668b9fa8 100644
--- a/sys/sys/systm.h
+++ b/sys/sys/systm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: systm.h,v 1.81 2010/07/08 20:15:01 deraadt Exp $ */
+/* $OpenBSD: systm.h,v 1.82 2010/08/20 22:03:22 matthew Exp $ */
/* $NetBSD: systm.h,v 1.50 1996/06/09 04:55:09 briggs Exp $ */
/*-
@@ -213,8 +213,8 @@ int copyin(const void *, void *, size_t)
int copyout(const void *, void *, size_t);
struct timeval;
-int hzto(struct timeval *);
-int tvtohz(struct timeval *);
+int hzto(const struct timeval *);
+int tvtohz(const struct timeval *);
void realitexpire(void *);
struct clockframe;