summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-22 00:53:39 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-22 00:53:39 +0100
commite71f88f5af3c14812c8897c884cf34d821d38a26 (patch)
tree158d1b2e4d08fc7ec6dc8b7b8bc0017040be73b4
parentb41ccf1b0351f7c836bf000b9e8c4a389e38f389 (diff)
clookup: Fix warning
* sutils/clookup.c (file_name_lookup_carefully): Make head a non-const char *.
-rw-r--r--sutils/clookup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sutils/clookup.c b/sutils/clookup.c
index 97a04b51..1858efb9 100644
--- a/sutils/clookup.c
+++ b/sutils/clookup.c
@@ -56,8 +56,8 @@ file_name_lookup_carefully (const char *name, int flags, mode_t mode)
mach_port_t *node)
{
error_t err;
- const char *head, *tail;
- char *slash = index (name, '/');
+ const char *tail;
+ char *slash = index (name, '/'), *head;
if (slash)
{