From 2ed669b5b1da77e80fff6dc2f72f11e266479a8c Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 5 Mar 2018 01:04:11 +0100 Subject: Fix warnings * libdiskfs/boot-start.c (diskfs_start_bootstrap): Fix printf format. * libfshelp/delegate.c: Include and . * libfshelp/start-translator-long.c: Include . * libshouldbeinlibc/ugids-verify-auth.c (server_verify_make_auth): Fix prototypes for password_check_group and password_check_user. * libstore/argp.c: Include . * libstore/task.c: Include . * exec/exec.c: Include . * libbpf/bpf_impl.c: Include . * proc/info.c (S_proc_getloginpids): Remove local variables leader_task and leader_sub. * proc/main.c (main): Remove local variable original_argv. * boot/boot.c (task_died, S_mach_notify_new_task): Fix printf format. * exec/elfcore.c: Include and . * trans/crash.c: Include . * trans/random.c: Include . * utils/login.c: Include . * utils/id.c: Include . * utils/devprobe.c: Include . * utils/addauth.c: Include . * utils/frobauth-mod.c: Include . * utils/storeread.c: Include . * utils/msgport.c: Include . * sutils/clookup.c (file_name_lookup_carefully): Fix lookup function prototype, make head and tail const. * utils/rpcscan.c: Include . * sutils/bless.c: Include . * fstests/fstests.c: Include . * startup/startup.c (argz_task_insert_right): Fix printf format. * init/init.c: Include . --- 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 0232b634..97a04b51 100644 --- a/sutils/clookup.c +++ b/sutils/clookup.c @@ -51,12 +51,12 @@ file_name_lookup_carefully (const char *name, int flags, mode_t mode) sure the result node doesn't have a passive translator with no active translator started (but we make an exception for symlinks) -- if it does, we just return ENXIO. */ - error_t lookup (file_t dir, char *name, int flags, mode_t mode, + error_t lookup (file_t dir, const char *name, int flags, mode_t mode, retry_type *retry, string_t retry_name, mach_port_t *node) { error_t err; - char *head, *tail; + const char *head, *tail; char *slash = index (name, '/'); if (slash) -- cgit v1.2.3