From: Samuel Thibault Date: Sun, 28 Jan 2018 15:21:28 +0000 (+0100) Subject: hurd: Fix warning X-Git-Tag: glibc-2.27~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=844bf92148eee21805b9248264b6c2c557529cc5;p=thirdparty%2Fglibc.git hurd: Fix warning * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath const char * instead of char *. --- diff --git a/ChangeLog b/ChangeLog index 863afe0ce66..3ca24096637 100644 --- a/ChangeLog +++ b/ChangeLog @@ -37,6 +37,8 @@ critical section to make code simpler and avoid warning. * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from critical section to make code simpler and avoid warning. + * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath + const char * instead of char *. 2018-01-27 James Clarke diff --git a/sysdeps/mach/hurd/spawni.c b/sysdeps/mach/hurd/spawni.c index aa3b0c46604..9351c13e56d 100644 --- a/sysdeps/mach/hurd/spawni.c +++ b/sysdeps/mach/hurd/spawni.c @@ -45,7 +45,8 @@ __spawni (pid_t *pid, const char *file, { pid_t new_pid; char *path, *p, *name; - char *concat_name = NULL, *relpath, *abspath; + char *concat_name = NULL; + const char *relpath, *abspath; int res; size_t len; size_t pathlen;