Reacted on -Wextra -Wno-unused-parameter warnings of gcc for md5.c

This commit is contained in:
Thomas Schmitt 2011-05-21 23:15:48 +02:00
parent 228995c148
commit e69854b35f

View File

@ -229,10 +229,10 @@ static int md5_init(libisofs_md5_ctx *ctx, int flag)
static int md5_update(libisofs_md5_ctx *ctx, unsigned char *data, static int md5_update(libisofs_md5_ctx *ctx, unsigned char *data,
int datalen, int flag) int datalen, int flag)
{ {
unsigned int i, index, partlen; int i, index, partlen;
/* Compute number of bytes mod 64 */ /* Compute number of bytes mod 64 */
index = (unsigned int)((ctx->count[0] >> 3) & 0x3F); index = ((ctx->count[0] >> 3) & 0x3F);
/* Update number of bits */ /* Update number of bits */
if ((ctx->count[0] += ((uint32_t) datalen << 3)) < if ((ctx->count[0] += ((uint32_t) datalen << 3)) <
((uint32_t) datalen << 3)) ((uint32_t) datalen << 3))