diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-01-16 18:54:19 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-01-16 19:29:10 +0100 |
commit | dd3048b2e483f66571cfa1b2ccebb2091b9ad990 (patch) | |
tree | e8cc587d06c15befd9ab7212938bb0e05a029c23 /exec | |
parent | 2e38095efd8cad7fe6feb95dbeb276b7a4287f05 (diff) | |
download | hurd-dd3048b2e483f66571cfa1b2ccebb2091b9ad990.tar.gz hurd-dd3048b2e483f66571cfa1b2ccebb2091b9ad990.tar.bz2 hurd-dd3048b2e483f66571cfa1b2ccebb2091b9ad990.zip |
Make RPC input array parameters const
This follows mig's cf4bcc3f1435 ("Also add const qualifiers on server
side")
Diffstat (limited to 'exec')
-rw-r--r-- | exec/exec.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/exec/exec.c b/exec/exec.c index eeb2715c..06589df9 100644 --- a/exec/exec.c +++ b/exec/exec.c @@ -1528,16 +1528,16 @@ S_exec_exec (struct trivfs_protid *protid, file_t file, task_t oldtask, int flags, - data_t argv, mach_msg_type_number_t argvlen, boolean_t argv_copy, - data_t envp, mach_msg_type_number_t envplen, boolean_t envp_copy, - mach_port_t *dtable, mach_msg_type_number_t dtablesize, + const_data_t argv, mach_msg_type_number_t argvlen, boolean_t argv_copy, + const_data_t envp, mach_msg_type_number_t envplen, boolean_t envp_copy, + const mach_port_t *dtable, mach_msg_type_number_t dtablesize, boolean_t dtable_copy, - mach_port_t *portarray, mach_msg_type_number_t nports, + const mach_port_t *portarray, mach_msg_type_number_t nports, boolean_t portarray_copy, - int *intarray, mach_msg_type_number_t nints, + const int *intarray, mach_msg_type_number_t nints, boolean_t intarray_copy, - mach_port_t *deallocnames, mach_msg_type_number_t ndeallocnames, - mach_port_t *destroynames, mach_msg_type_number_t ndestroynames) + const mach_port_t *deallocnames, mach_msg_type_number_t ndeallocnames, + const mach_port_t *destroynames, mach_msg_type_number_t ndestroynames) { return S_exec_exec_paths (protid, file, @@ -1562,21 +1562,21 @@ S_exec_exec_paths (struct trivfs_protid *protid, file_t file, task_t oldtask, int flags, - string_t path, - string_t abspath, - char *argv, mach_msg_type_number_t argvlen, + const_string_t path, + const_string_t abspath, + const char *argv, mach_msg_type_number_t argvlen, boolean_t argv_copy, - char *envp, mach_msg_type_number_t envplen, + const char *envp, mach_msg_type_number_t envplen, boolean_t envp_copy, - mach_port_t *dtable, mach_msg_type_number_t dtablesize, + const mach_port_t *dtable, mach_msg_type_number_t dtablesize, boolean_t dtable_copy, - mach_port_t *portarray, mach_msg_type_number_t nports, + const mach_port_t *portarray, mach_msg_type_number_t nports, boolean_t portarray_copy, - int *intarray, mach_msg_type_number_t nints, + const int *intarray, mach_msg_type_number_t nints, boolean_t intarray_copy, - mach_port_t *deallocnames, + const mach_port_t *deallocnames, mach_msg_type_number_t ndeallocnames, - mach_port_t *destroynames, + const mach_port_t *destroynames, mach_msg_type_number_t ndestroynames) { if (! protid) @@ -1597,8 +1597,8 @@ S_exec_exec_paths (struct trivfs_protid *protid, kern_return_t S_exec_setexecdata (struct trivfs_protid *protid, - mach_port_t *ports, mach_msg_type_number_t nports, int ports_copy, - int *ints, mach_msg_type_number_t nints, int ints_copy) + const mach_port_t *ports, mach_msg_type_number_t nports, int ports_copy, + const int *ints, mach_msg_type_number_t nints, int ints_copy) { error_t err; |