diff options
author | 1997-04-26 10:38:30 +0000 | |
---|---|---|
committer | 1997-04-26 10:38:30 +0000 | |
commit | 51053730cc4b3a516ed7fa5960dd1305a05d7db3 (patch) | |
tree | 25a2c33d6d0d05600597a8585fe149157a516a54 | |
parent | Use SYSLIBC_SCCS; these are syscalls (diff) | |
download | wireguard-openbsd-51053730cc4b3a516ed7fa5960dd1305a05d7db3.tar.xz wireguard-openbsd-51053730cc4b3a516ed7fa5960dd1305a05d7db3.zip |
First argument to nanosleep(2) is const; so is the first argument to
copyin(9). Propagate this.
-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); |