From e69854b35f0031942847a3f4b9f54e4b27578568 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 21 May 2011 23:15:48 +0200 Subject: [PATCH] Reacted on -Wextra -Wno-unused-parameter warnings of gcc for md5.c --- libisofs/md5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libisofs/md5.c b/libisofs/md5.c index f2c8906..e63c48e 100644 --- a/libisofs/md5.c +++ b/libisofs/md5.c @@ -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, int datalen, int flag) { - unsigned int i, index, partlen; + int i, index, partlen; /* Compute number of bytes mod 64 */ - index = (unsigned int)((ctx->count[0] >> 3) & 0x3F); + index = ((ctx->count[0] >> 3) & 0x3F); /* Update number of bits */ if ((ctx->count[0] += ((uint32_t) datalen << 3)) < ((uint32_t) datalen << 3))