diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1997-04-26 10:38:31 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1997-04-26 10:38:31 +0000 |
commit | fde59d5afa8e9ed4e948148b279890aef07dbbc1 (patch) | |
tree | 540c8772f2d3038a5dc5ed43d460c6d6b7e37599 /sys | |
parent | d620d3348b36080e810eec3a66460a6bfe0b69eb (diff) |
First argument to nanosleep(2) is const; so is the first argument to
copyin(9). Propagate this.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_time.c | 6 |
1 files 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); |