From 51053730cc4b3a516ed7fa5960dd1305a05d7db3 Mon Sep 17 00:00:00 2001 From: tholo Date: Sat, 26 Apr 1997 10:38:30 +0000 Subject: [PATCH] First argument to nanosleep(2) is const; so is the first argument to copyin(9). Propagate this. --- sys/kern/kern_time.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c index c25a7558ec3..7c05e46e5cf 100644 --- a/sys/kern/kern_time.c +++ b/sys/kern/kern_time.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_time.c,v 1.7 1997/04/23 09:52:03 tholo Exp $ */ +/* $OpenBSD: kern_time.c,v 1.8 1997/04/26 10:38:30 tholo Exp $ */ /* $NetBSD: kern_time.c,v 1.20 1996/02/18 11:57:06 fvdl Exp $ */ /* @@ -183,7 +183,7 @@ sys_nanosleep(p, v, retval) { static int nanowait; register struct sys_nanosleep_args/* { - syscallarg(struct timespec *) rqtp; + syscallarg(const struct timespec *) rqtp; syscallarg(struct timespec *) rmtp; } */ *uap = v; struct timespec rqt; @@ -191,7 +191,7 @@ sys_nanosleep(p, v, retval) struct timeval atv, utv; int error, s, timo; - error = copyin((caddr_t)SCARG(uap, rqtp), (caddr_t)&rqt, + error = copyin((const caddr_t)SCARG(uap, rqtp), (caddr_t)&rqt, sizeof(struct timespec)); if (error) return (error); -- 2.20.1