summaryrefslogtreecommitdiff
path: root/lib/md5.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-08-04 19:05:09 +0200
committerYang Tse <yangsita@gmail.com>2010-08-04 19:05:09 +0200
commit364fd2f1ada84eb713ec14629ca66fa332b19851 (patch)
tree5da7164a720adf4b51663bb46f4440db23824d88 /lib/md5.c
parent1cbe66fbc8e7d6c174c1919a905b768b9c48e1f8 (diff)
downloadcurl-364fd2f1ada84eb713ec14629ca66fa332b19851.tar.gz
build: remove unneeded cast to (void *)
Diffstat (limited to 'lib/md5.c')
-rw-r--r--lib/md5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/md5.c b/lib/md5.c
index 3f715ba9c..b3912c583 100644
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -205,7 +205,7 @@ static void MD5_Update (struct md5_ctx *context, /* context */
/* Transform as many times as possible. */
if(inputLen >= partLen) {
- memcpy((void *)&context->buffer[bufindex], (void *)input, partLen);
+ memcpy(&context->buffer[bufindex], input, partLen);
MD5Transform(context->state, context->buffer);
for (i = partLen; i + 63 < inputLen; i += 64)
@@ -217,7 +217,7 @@ static void MD5_Update (struct md5_ctx *context, /* context */
i = 0;
/* Buffer remaining input */
- memcpy((void *)&context->buffer[bufindex], (void *)&input[i], inputLen-i);
+ memcpy(&context->buffer[bufindex], &input[i], inputLen-i);
}
/* MD5 finalization. Ends an MD5 message-digest operation, writing the