From 844bf92148eee21805b9248264b6c2c557529cc5 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 28 Jan 2018 16:21:28 +0100 Subject: hurd: Fix warning * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath const char * instead of char *. --- sysdeps/mach/hurd/spawni.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sysdeps/mach/hurd/spawni.c') diff --git a/sysdeps/mach/hurd/spawni.c b/sysdeps/mach/hurd/spawni.c index aa3b0c4660..9351c13e56 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; -- cgit 1.4.1