hurd: Fix warning
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 28 Jan 2018 15:21:28 +0000 (16:21 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 28 Jan 2018 15:21:28 +0000 (16:21 +0100)
* sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
const char * instead of char *.

ChangeLog
sysdeps/mach/hurd/spawni.c

index 863afe0..3ca2409 100644 (file)
--- 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  <jrtc27@jrtc27.com>
 
index aa3b0c4..9351c13 100644 (file)
@@ -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;