From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8482 invoked by alias); 28 Jan 2018 15:25:44 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 8471 invoked by uid 89); 28 Jan 2018 15:25:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_HELO_PASS,SPF_NEUTRAL autolearn=ham version=3.3.2 spammy= X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd,commited 1/2] hurd: Fix warning Date: Sun, 28 Jan 2018 17:47:00 -0000 Message-Id: <20180128152539.12085-2-samuel.thibault@ens-lyon.org> In-Reply-To: <20180128152539.12085-1-samuel.thibault@ens-lyon.org> References: <20180128152539.12085-1-samuel.thibault@ens-lyon.org> X-SW-Source: 2018-01/txt/msg01028.txt.bz2 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath const char * instead of char *. --- ChangeLog | 2 ++ sysdeps/mach/hurd/spawni.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 863afe0ce6..3ca2409663 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 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; -- 2.15.1