From dd3048b2e483f66571cfa1b2ccebb2091b9ad990 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 16 Jan 2022 18:54:19 +0100 Subject: Make RPC input array parameters const This follows mig's cf4bcc3f1435 ("Also add const qualifiers on server side") --- proc/host.c | 10 +++++----- proc/info.c | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'proc') diff --git a/proc/host.c b/proc/host.c index 9934837f..991d1335 100644 --- a/proc/host.c +++ b/proc/host.c @@ -79,9 +79,9 @@ S_proc_getprivports (struct proc *p, /* Implement proc_setexecdata as described in . */ kern_return_t S_proc_setexecdata (struct proc *p, - mach_port_t *ports, + const mach_port_t *ports, size_t nports, - int *ints, + const int *ints, size_t nints) { int i; @@ -409,9 +409,9 @@ S_proc_uname (pstruct_t process, kern_return_t S_proc_register_version (pstruct_t server, mach_port_t credential, - string_t name, - string_t release, - string_t version) + const_string_t name, + const_string_t release, + const_string_t version) { error_t err = 0; int i; diff --git a/proc/info.c b/proc/info.c index 435c718f..edade95b 100644 --- a/proc/info.c +++ b/proc/info.c @@ -954,7 +954,7 @@ S_proc_getloginpids (struct proc *callerp, /* Implement proc_setlogin as described in . */ kern_return_t S_proc_setlogin (struct proc *p, - string_t login) + const_string_t login) { struct login *l; @@ -1030,7 +1030,7 @@ S_proc_getnports (struct proc *callerp, /* Implement proc_set_path as described in . */ kern_return_t S_proc_set_exe (struct proc *p, - string_t path) + const_string_t path) { char *copy; -- cgit v1.2.3