about summary refs log tree commit diff
path: root/hurd/hurdmsg.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-16 18:28:40 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-16 18:48:08 +0000
commit0eb230ccceee70c4b5d2a75807d2189aa4ed6e7c (patch)
tree2e095828d265e8b40968741cd5b2f73e0af7f771 /hurd/hurdmsg.c
parent41a11a5e83265c7718787b9cfb8b3c109c59b980 (diff)
downloadglibc-0eb230ccceee70c4b5d2a75807d2189aa4ed6e7c.tar.gz
glibc-0eb230ccceee70c4b5d2a75807d2189aa4ed6e7c.tar.xz
glibc-0eb230ccceee70c4b5d2a75807d2189aa4ed6e7c.zip
hurd: Make RPC input array parameters const
This follows mig's cf4bcc3f1435 ("Also add const qualifiers on server
side")
Diffstat (limited to 'hurd/hurdmsg.c')
-rw-r--r--hurd/hurdmsg.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/hurd/hurdmsg.c b/hurd/hurdmsg.c
index 4e6ddf2836..cad8300968 100644
--- a/hurd/hurdmsg.c
+++ b/hurd/hurdmsg.c
@@ -93,7 +93,7 @@ _S_msg_get_init_ports (mach_port_t msgport, mach_port_t auth,
 
 kern_return_t
 _S_msg_set_init_ports (mach_port_t msgport, mach_port_t auth,
-		       mach_port_t *ports, mach_msg_type_number_t nports)
+		       const mach_port_t *ports, mach_msg_type_number_t nports)
 {
   mach_msg_type_number_t i;
   error_t err;
@@ -243,7 +243,7 @@ _S_msg_set_init_int (mach_port_t msgport, mach_port_t auth,
 
 kern_return_t
 _S_msg_set_init_ints (mach_port_t msgport, mach_port_t auth,
-		      int *values, mach_msg_type_number_t nvalues)
+		      const int *values, mach_msg_type_number_t nvalues)
 {
   error_t err;
   mach_msg_type_number_t i;
@@ -295,7 +295,7 @@ _S_msg_set_fd (mach_port_t msgport, mach_port_t auth,
 
 kern_return_t
 _S_msg_get_env_variable (mach_port_t msgport,
-			 string_t variable, //
+			 const_string_t variable, //
 			 char **data, mach_msg_type_number_t *datalen)
 {
   error_t err;
@@ -322,8 +322,8 @@ _S_msg_get_env_variable (mach_port_t msgport,
 
 kern_return_t
 _S_msg_set_env_variable (mach_port_t msgport, mach_port_t auth,
-			 string_t variable, //
-			 string_t value, //
+			 const_string_t variable, //
+			 const_string_t value, //
 			 int replace)
 {
   AUTHCHECK;
@@ -367,7 +367,7 @@ _S_msg_get_environment (mach_port_t msgport,
 
 kern_return_t
 _S_msg_set_environment (mach_port_t msgport, mach_port_t auth,
-			char *data, mach_msg_type_number_t datalen)
+			const char *data, mach_msg_type_number_t datalen)
 {
   int _hurd_split_args (char *, mach_msg_type_number_t, char **);
   int envc;
@@ -441,6 +441,6 @@ out:
 kern_return_t
 _S_msg_set_dtable (mach_port_t process,
 		   mach_port_t refport,
-		   portarray_t dtable,
+		   const_portarray_t dtable,
 		   mach_msg_type_number_t dtableCnt)
 { return EOPNOTSUPP; }