From 364fd2f1ada84eb713ec14629ca66fa332b19851 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 4 Aug 2010 19:05:09 +0200 Subject: build: remove unneeded cast to (void *) --- lib/md4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/md4.c') diff --git a/lib/md4.c b/lib/md4.c index 0dfea88f6..ecf3bfcd8 100644 --- a/lib/md4.c +++ b/lib/md4.c @@ -122,7 +122,7 @@ static void MD4Update(MD4_CTX *context, const unsigned char *input, /* Transform as many times as possible. */ if (inputLen >= partLen) { - memcpy((void *)&context->buffer[bufindex], (void *)input, partLen); + memcpy(&context->buffer[bufindex], input, partLen); MD4Transform (context->state, context->buffer); for (i = partLen; i + 63 < inputLen; i += 64) @@ -134,7 +134,7 @@ static void MD4Update(MD4_CTX *context, const unsigned char *input, i = 0; /* Buffer remaining input */ - memcpy((void *)&context->buffer[bufindex], (void *)&input[i], inputLen-i); + memcpy(&context->buffer[bufindex], &input[i], inputLen-i); } /* MD4 padding. */ -- cgit v1.2.1