aboutsummaryrefslogtreecommitdiff
path: root/libnetfs/file-exec.c
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 /libnetfs/file-exec.c
parent2e38095efd8cad7fe6feb95dbeb276b7a4287f05 (diff)
downloadhurd-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 'libnetfs/file-exec.c')
-rw-r--r--libnetfs/file-exec.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/libnetfs/file-exec.c b/libnetfs/file-exec.c
index fb070aca..8ac0f892 100644
--- a/libnetfs/file-exec.c
+++ b/libnetfs/file-exec.c
@@ -35,19 +35,19 @@ kern_return_t
netfs_S_file_exec (struct protid *cred,
task_t task,
int flags,
- data_t argv,
+ const_data_t argv,
size_t argvlen,
- data_t envp,
+ const_data_t envp,
size_t envplen,
- mach_port_t *fds,
+ const mach_port_t *fds,
size_t fdslen,
- mach_port_t *portarray,
+ const mach_port_t *portarray,
size_t portarraylen,
- int *intarray,
+ const int *intarray,
size_t intarraylen,
- mach_port_t *deallocnames,
+ const mach_port_t *deallocnames,
size_t deallocnameslen,
- mach_port_t *destroynames,
+ const mach_port_t *destroynames,
size_t destroynameslen)
{
return netfs_S_file_exec_paths (cred,
@@ -68,21 +68,21 @@ kern_return_t
netfs_S_file_exec_paths (struct protid *cred,
task_t task,
int flags,
- string_t path,
- string_t abspath,
- char *argv,
+ const_string_t path,
+ const_string_t abspath,
+ const char *argv,
size_t argvlen,
- char *envp,
+ const char *envp,
size_t envplen,
- mach_port_t *fds,
+ const mach_port_t *fds,
size_t fdslen,
- mach_port_t *portarray,
+ const mach_port_t *portarray,
size_t portarraylen,
- int *intarray,
+ const int *intarray,
size_t intarraylen,
- mach_port_t *deallocnames,
+ const mach_port_t *deallocnames,
size_t deallocnameslen,
- mach_port_t *destroynames,
+ const mach_port_t *destroynames,
size_t destroynameslen)
{
struct node *np;