From f5fb7c713ea443469406a691e60a6f4567a4cb75 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 17 Jan 2022 00:32:29 +0100 Subject: Fix const warnings Now that the RPCs have const, this forces us cleaning our const-meant functions. --- libnetfs/dir-lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libnetfs/dir-lookup.c') diff --git a/libnetfs/dir-lookup.c b/libnetfs/dir-lookup.c index da17a2d3..87874dc5 100644 --- a/libnetfs/dir-lookup.c +++ b/libnetfs/dir-lookup.c @@ -67,7 +67,7 @@ netfs_S_dir_lookup (struct protid *dircred, /* Keep a pointer to the start of the filename for length calculations. */ - char *filename_start = filename; + const char *filename_start = filename; *retry_port_type = MACH_MSG_TYPE_MAKE_SEND; *do_retry = FS_RETRY_NORMAL; -- cgit v1.2.3