From adeeb9990e6302482b38267fd517a2516d5b9e2a Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Tue, 29 Dec 2015 22:48:16 +0100 Subject: fix compiler warnings in hurd/libshouldbeinlibc --- libshouldbeinlibc/ugids-verify-auth.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libshouldbeinlibc/ugids-verify-auth.c') diff --git a/libshouldbeinlibc/ugids-verify-auth.c b/libshouldbeinlibc/ugids-verify-auth.c index 0e85b1b6..f6991aa2 100644 --- a/libshouldbeinlibc/ugids-verify-auth.c +++ b/libshouldbeinlibc/ugids-verify-auth.c @@ -65,9 +65,10 @@ server_verify_make_auth (const char *password, { auth_t auth; struct svma_state *svma_state = hook; - error_t (*check) (io_t server, uid_t id, const char *passwd, auth_t *auth) = + /* Mig routines don't use 'const' for passwd. */ + error_t (*check) (io_t server, uid_t id, char *passwd, auth_t *auth) = is_group ? password_check_group : password_check_user; - error_t err = (*check) (svma_state->server, id, password, &auth); + error_t err = (*check) (svma_state->server, id, (char *) password, &auth); if (! err) /* PASSWORD checked out ok; the corresponding authentication is in AUTH. */ -- cgit v1.2.3