diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2015-12-29 22:48:16 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-12-29 23:03:26 +0100 |
commit | adeeb9990e6302482b38267fd517a2516d5b9e2a (patch) | |
tree | c1c91df6046a229f0195665368431c7b12996efc /libshouldbeinlibc/ugids-verify-auth.c | |
parent | 4c0d8ebb6494af95f125e1e829dfb7453b7ad03e (diff) | |
download | hurd-adeeb9990e6302482b38267fd517a2516d5b9e2a.tar.gz hurd-adeeb9990e6302482b38267fd517a2516d5b9e2a.tar.bz2 hurd-adeeb9990e6302482b38267fd517a2516d5b9e2a.zip |
fix compiler warnings in hurd/libshouldbeinlibc
Diffstat (limited to 'libshouldbeinlibc/ugids-verify-auth.c')
-rw-r--r-- | libshouldbeinlibc/ugids-verify-auth.c | 5 |
1 files changed, 3 insertions, 2 deletions
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. */ |