summaryrefslogtreecommitdiff
path: root/proc
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-16 18:54:19 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-16 19:29:10 +0100
commitdd3048b2e483f66571cfa1b2ccebb2091b9ad990 (patch)
treee8cc587d06c15befd9ab7212938bb0e05a029c23 /proc
parent2e38095efd8cad7fe6feb95dbeb276b7a4287f05 (diff)
Make RPC input array parameters const
This follows mig's cf4bcc3f1435 ("Also add const qualifiers on server side")
Diffstat (limited to 'proc')
-rw-r--r--proc/host.c10
-rw-r--r--proc/info.c4
2 files changed, 7 insertions, 7 deletions
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 <hurd/process.defs>. */
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 <hurd/process.defs>. */
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 <hurd/process.defs>. */
kern_return_t
S_proc_set_exe (struct proc *p,
- string_t path)
+ const_string_t path)
{
char *copy;