diff mbox series

[hurd,commited,1/5] hurd: Fix _S_msg_get/set_env_variable prototype

Message ID 20201123003554.1513184-2-samuel.thibault@ens-lyon.org
State New
Headers show
Series gcc-11-related fixes | expand

Commit Message

Samuel Thibault Nov. 23, 2020, 12:35 a.m. UTC
_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 mbox series

Patch

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;