From: Bodo Möller Date: Thu, 17 Feb 2000 18:36:21 +0000 (+0000) Subject: Casts now unnecessary because of changed prototype. X-Git-Tag: OpenSSL_0_9_5beta1~53 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=73c55919443640e0856d4e80be9b7123fc270b02;p=oweals%2Fopenssl.git Casts now unnecessary because of changed prototype. --- 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); }