public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: libc-alpha@sourceware.org
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>
Subject: [hurd,commited 1/2] hurd: Fix warning
Date: Sun, 28 Jan 2018 17:47:00 -0000	[thread overview]
Message-ID: <20180128152539.12085-2-samuel.thibault@ens-lyon.org> (raw)
In-Reply-To: <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  <jrtc27@jrtc27.com>
 
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

  reply	other threads:[~2018-01-28 15:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-28 17:58 [hurd,commited 0/2] hurd: Fix warnings Samuel Thibault
2018-01-28 17:47 ` Samuel Thibault [this message]
2018-01-28 18:08 ` [hurd,commited 2/2] " Samuel Thibault

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180128152539.12085-2-samuel.thibault@ens-lyon.org \
    --to=samuel.thibault@ens-lyon.org \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).