freebsd32: freebsd32_copyinuio takes const iovp

We only read the iovp so make it const like in copyinuio.

Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D44376
This commit is contained in:
Brooks Davis 2024-03-19 21:47:55 +00:00
parent fba329a195
commit 694ef157b9
2 changed files with 2 additions and 2 deletions

View File

@ -1191,7 +1191,7 @@ freebsd32_ptrace(struct thread *td, struct freebsd32_ptrace_args *uap)
}
int
freebsd32_copyinuio(struct iovec32 *iovp, u_int iovcnt, struct uio **uiop)
freebsd32_copyinuio(const struct iovec32 *iovp, u_int iovcnt, struct uio **uiop)
{
struct iovec32 iov32;
struct iovec *iov;

View File

@ -114,7 +114,7 @@ int freebsd32_copyout_strings(struct image_params *imgp,
uintptr_t *stack_base);
int freebsd32_copyiniov(struct iovec32 *iovp, u_int iovcnt,
struct iovec **iov, int error);
int freebsd32_copyinuio(struct iovec32 *iovp, u_int iovcnt,
int freebsd32_copyinuio(const struct iovec32 *iovp, u_int iovcnt,
struct uio **uiop);
void freebsd32_rusage_out(const struct rusage *s, struct rusage32 *s32);