From ae959c26db5d11bcda0335ea72b696a28e1b6e3a Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 22 Nov 2020 09:59:17 +0000 Subject: [PATCH] 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. --- hurd/hurdmsg.c | 6 +++--- 1 file 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; -- 2.43.5