about summary refs log tree commit diff
path: root/hurd/hurdlookup.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-28 16:23:59 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-28 16:23:59 +0100
commitf8bee46cc209ee968c1a34a4b46be91ce691dfc6 (patch)
tree7721c64a35efe6df31890ba0cbf7fd0728e5b45e /hurd/hurdlookup.c
parent844bf92148eee21805b9248264b6c2c557529cc5 (diff)
downloadglibc-f8bee46cc209ee968c1a34a4b46be91ce691dfc6.tar.gz
glibc-f8bee46cc209ee968c1a34a4b46be91ce691dfc6.tar.xz
glibc-f8bee46cc209ee968c1a34a4b46be91ce691dfc6.zip
hurd: Fix warnings
	* hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
	__hurd_file_name_split, hurd_file_name_split,
	__hurd_directory_name_split, hurd_directory_name_split,
	__hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
	hurd_file_name_path_lookup): Make lookup function parameter take a
	const char *name instead of char *name.
	* hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
	__hurd_directory_name_split): Likewise.
	* hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
	* hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
Diffstat (limited to 'hurd/hurdlookup.c')
-rw-r--r--hurd/hurdlookup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hurd/hurdlookup.c b/hurd/hurdlookup.c
index f58d72b032..1861d5879d 100644
--- a/hurd/hurdlookup.c
+++ b/hurd/hurdlookup.c
@@ -42,7 +42,7 @@ __hurd_file_name_lookup (error_t (*use_init_port)
 			   (int which, error_t (*operate) (file_t)),
 			 file_t (*get_dtable_port) (int fd),
 			 error_t (*lookup)
-			   (file_t dir, char *name, int flags, mode_t mode,
+			   (file_t dir, const char *name, int flags, mode_t mode,
 			    retry_type *do_retry, string_t retry_name,
 			    mach_port_t *result),
 			 const char *file_name, int flags, mode_t mode,
@@ -105,7 +105,7 @@ __hurd_file_name_split (error_t (*use_init_port)
 			  (int which, error_t (*operate) (file_t)),
 			file_t (*get_dtable_port) (int fd),
 			error_t (*lookup)
-			  (file_t dir, char *name, int flags, mode_t mode,
+			  (file_t dir, const char *name, int flags, mode_t mode,
 			   retry_type *do_retry, string_t retry_name,
 			   mach_port_t *result),
 			const char *file_name,
@@ -158,7 +158,7 @@ __hurd_directory_name_split (error_t (*use_init_port)
 			     (int which, error_t (*operate) (file_t)),
 			     file_t (*get_dtable_port) (int fd),
 			     error_t (*lookup)
-			     (file_t dir, char *name, int flags, mode_t mode,
+			     (file_t dir, const char *name, int flags, mode_t mode,
 			      retry_type *do_retry, string_t retry_name,
 			      mach_port_t *result),
 			     const char *file_name,