summaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-22 09:59:17 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-22 09:59:51 +0000
commitae959c26db5d11bcda0335ea72b696a28e1b6e3a (patch)
tree2d3d9254a29688aee64a4f021426f78f28b6318f /hurd
parent4e58941fc4b4c9d90769aa97ed76aa7e1692cb94 (diff)
downloadglibc-ae959c26db5d11bcda0335ea72b696a28e1b6e3a.tar.gz
hurd: Fix _S_msg_get/set_env_variable prototype
_S_msg_get_env_variable and _S_msg_set_env_variable are taking string_t, not char *. Fixes a warning with gcc 11.
Diffstat (limited to 'hurd')
-rw-r--r--hurd/hurdmsg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hurd/hurdmsg.c b/hurd/hurdmsg.c
index ebf2e028ab..80b341f068 100644
--- a/hurd/hurdmsg.c
+++ b/hurd/hurdmsg.c
@@ -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,
- char *variable,
+ 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,
- char *variable,
- char *value,
+ string_t variable, //
+ string_t value, //
int replace)
{
AUTHCHECK;