From 73c55919443640e0856d4e80be9b7123fc270b02 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Thu, 17 Feb 2000 18:36:21 +0000 Subject: [PATCH] Casts now unnecessary because of changed prototype. --- apps/passwd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/passwd.c b/apps/passwd.c index 0e5682d1d6..6b8aafa157 100644 --- a/apps/passwd.c +++ b/apps/passwd.c @@ -323,13 +323,13 @@ static char *apr1_crypt(const char *passwd, const char *salt) MD5_CTX md2; MD5_Init(&md2); - MD5_Update(&md2, (i & 1) ? (unsigned char *) passwd : buf, - (i & 1) ? passwd_len : sizeof buf); + MD5_Update(&md2, (i & 1) ? passwd : buf, + (i & 1) ? passwd_len : sizeof buf); if (i % 3) MD5_Update(&md2, salt_out, salt_len); if (i % 7) MD5_Update(&md2, passwd, passwd_len); - MD5_Update(&md2, (i & 1) ? buf : (unsigned char *) passwd, + MD5_Update(&md2, (i & 1) ? buf : passwd, (i & 1) ? sizeof buf : passwd_len); MD5_Final(buf, &md2); } -- 2.25.1