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.
This commit is contained in:
Samuel Thibault 2020-11-22 09:59:17 +00:00
parent 4e58941fc4
commit ae959c26db

View File

@ -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;