aboutsummaryrefslogtreecommitdiff
path: root/libshouldbeinlibc/ugids-verify-auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'libshouldbeinlibc/ugids-verify-auth.c')
-rw-r--r--libshouldbeinlibc/ugids-verify-auth.c4
1 files changed, 2 insertions, 2 deletions
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. */