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 . --- libshouldbeinlibc/ugids-verify-auth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libshouldbeinlibc') diff --git a/libshouldbeinlibc/ugids-verify-auth.c b/libshouldbeinlibc/ugids-verify-auth.c index f6991aa2..ad28d49e 100644 --- a/libshouldbeinlibc/ugids-verify-auth.c +++ b/libshouldbeinlibc/ugids-verify-auth.c @@ -66,9 +66,9 @@ server_verify_make_auth (const char *password, auth_t auth; struct svma_state *svma_state = hook; /* Mig routines don't use 'const' for passwd. */ - error_t (*check) (io_t server, uid_t id, char *passwd, auth_t *auth) = + error_t (*check) (io_t server, uid_t id, const char *passwd, auth_t *auth) = is_group ? password_check_group : password_check_user; - error_t err = (*check) (svma_state->server, id, (char *) password, &auth); + error_t err = (*check) (svma_state->server, id, password, &auth); if (! err) /* PASSWORD checked out ok; the corresponding authentication is in AUTH. */ -- cgit v1.2.3