diff options
author | alfred <alfred@FreeBSD.org> | 2011-11-14 07:12:10 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2011-11-14 07:12:10 +0000 |
commit | fe73343e27407772b7f52898eb83bdbc6f68bdaa (patch) | |
tree | 8f4bf56011f0f8b0153054506863f5010a18a35c | |
parent | 7b1ccd71f2daeaf22349b2805db65aad5af33040 (diff) | |
download | FreeBSD-src-fe73343e27407772b7f52898eb83bdbc6f68bdaa.zip FreeBSD-src-fe73343e27407772b7f52898eb83bdbc6f68bdaa.tar.gz |
Constify args to copyiniov and copyinuio.
-rw-r--r-- | sys/kern/subr_uio.c | 4 | ||||
-rw-r--r-- | sys/sys/uio.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/subr_uio.c b/sys/kern/subr_uio.c index 6e81328..d49e3c3 100644 --- a/sys/kern/subr_uio.c +++ b/sys/kern/subr_uio.c @@ -437,7 +437,7 @@ copyinstrfrom(const void * __restrict src, void * __restrict dst, size_t len, } int -copyiniov(struct iovec *iovp, u_int iovcnt, struct iovec **iov, int error) +copyiniov(const struct iovec *iovp, u_int iovcnt, struct iovec **iov, int error) { u_int iovlen; @@ -455,7 +455,7 @@ copyiniov(struct iovec *iovp, u_int iovcnt, struct iovec **iov, int error) } int -copyinuio(struct iovec *iovp, u_int iovcnt, struct uio **uiop) +copyinuio(const struct iovec *iovp, u_int iovcnt, struct uio **uiop) { struct iovec *iov; struct uio *uio; diff --git a/sys/sys/uio.h b/sys/sys/uio.h index 5df279b..f3cc20f 100644 --- a/sys/sys/uio.h +++ b/sys/sys/uio.h @@ -89,11 +89,11 @@ struct vm_page; struct uio *cloneuio(struct uio *uiop); int copyinfrom(const void * __restrict src, void * __restrict dst, size_t len, int seg); -int copyiniov(struct iovec *iovp, u_int iovcnt, struct iovec **iov, +int copyiniov(const struct iovec *iovp, u_int iovcnt, struct iovec **iov, int error); int copyinstrfrom(const void * __restrict src, void * __restrict dst, size_t len, size_t * __restrict copied, int seg); -int copyinuio(struct iovec *iovp, u_int iovcnt, struct uio **uiop); +int copyinuio(const struct iovec *iovp, u_int iovcnt, struct uio **uiop); int copyout_map(struct thread *td, vm_offset_t *addr, size_t sz); int copyout_unmap(struct thread *td, vm_offset_t addr, size_t sz); int uiomove(void *cp, int n, struct uio *uio); |