From e71f88f5af3c14812c8897c884cf34d821d38a26 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 22 Nov 2020 00:53:39 +0100 Subject: clookup: Fix warning * sutils/clookup.c (file_name_lookup_carefully): Make head a non-const char *. --- sutils/clookup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sutils/clookup.c') 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) { -- cgit v1.2.3