hurd: Fix warning

* sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
	const char * instead of char *.
This commit is contained in:
Samuel Thibault 2018-01-28 16:21:28 +01:00
parent 19fd8d0d3e
commit 844bf92148
2 changed files with 4 additions and 1 deletions

View file

@ -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>

View 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;