summaryrefslogtreecommitdiffstats
path: root/lib/libutil/login_crypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libutil/login_crypt.c')
-rw-r--r--lib/libutil/login_crypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libutil/login_crypt.c b/lib/libutil/login_crypt.c
index f3d83a8..c65fc9b 100644
--- a/lib/libutil/login_crypt.c
+++ b/lib/libutil/login_crypt.c
@@ -38,7 +38,7 @@ const char *
login_setcryptfmt(login_cap_t *lc, const char *def, const char *error) {
const char *cipher;
- cipher = login_getcapstr(lc, "passwd_format", (char *)def, NULL);
+ cipher = login_getcapstr(lc, "passwd_format", def, NULL);
if (getenv("CRYPT_DEBUG") != NULL)
fprintf(stderr, "login_setcryptfmt: "
"passwd_format = %s\n", cipher);
OpenPOWER on IntegriCloud