git: 694ef157b9b7 - main - freebsd32: freebsd32_copyinuio takes const iovp

From: Brooks Davis <brooks_at_FreeBSD.org>
Date: Tue, 19 Mar 2024 23:15:50 UTC
The branch main has been updated by brooks:

URL: https://cgit.FreeBSD.org/src/commit/?id=694ef157b9b755b13fb724ef02b7964f59008d8c

commit 694ef157b9b755b13fb724ef02b7964f59008d8c
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2024-03-19 21:47:55 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2024-03-19 23:13:25 +0000

    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
---
 sys/compat/freebsd32/freebsd32_misc.c | 2 +-
 sys/compat/freebsd32/freebsd32_util.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c
index facbf00a4c51..d96a85f922f9 100644
--- a/sys/compat/freebsd32/freebsd32_misc.c
+++ b/sys/compat/freebsd32/freebsd32_misc.c
@@ -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;
diff --git a/sys/compat/freebsd32/freebsd32_util.h b/sys/compat/freebsd32/freebsd32_util.h
index c32c7a2ef4c1..dca61da714f0 100644
--- a/sys/compat/freebsd32/freebsd32_util.h
+++ b/sys/compat/freebsd32/freebsd32_util.h
@@ -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);