From patchwork Sun Jan 28 15:25:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 866831 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-89724-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="fE796wq9"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zTxL70tSHz9sNc for ; Mon, 29 Jan 2018 02:25:50 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=Nts+4M0HV+4jRlD4fNCpGTogJMYsVqG l6s8gLHousTbzV5L3Fl5w/fz0cpizZXI7RDDoUTzGMGI+RLb56lZK9e9YK9/Rrh8 0WsYDX52YfjsrAilOWXVs7QIsiPkDcqttPUIdGDOPURsReA0hgwkz6+mTYQuUivX tJE3H2j40ZVY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references; s=default; bh=zQMI4agtOa11A+s7k8oz331kdtQ=; b=fE796 wq9jzHZABIEViWknJOAG68I0D3NRM5F0FGGnBWsoF3XLB0jhVLdvkzr6K66NybAJ 8TbxgsSq1E3mIf6h59M6gz0u1hcD/tdSFXIjF2CMamloZSG9W3Qvq/FgGpUSFyYk 56eAvoD/1uARPKsUhuPD4JulcWQU6V6TUh6D0w= 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-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@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 16:25:38 +0100 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> * 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;