build: remove unneeded cast to (void *)
This commit is contained in:
parent
1cbe66fbc8
commit
364fd2f1ad
@ -122,7 +122,7 @@ static void MD4Update(MD4_CTX *context, const unsigned char *input,
|
|||||||
/* Transform as many times as possible.
|
/* Transform as many times as possible.
|
||||||
*/
|
*/
|
||||||
if (inputLen >= partLen) {
|
if (inputLen >= partLen) {
|
||||||
memcpy((void *)&context->buffer[bufindex], (void *)input, partLen);
|
memcpy(&context->buffer[bufindex], input, partLen);
|
||||||
MD4Transform (context->state, context->buffer);
|
MD4Transform (context->state, context->buffer);
|
||||||
|
|
||||||
for (i = partLen; i + 63 < inputLen; i += 64)
|
for (i = partLen; i + 63 < inputLen; i += 64)
|
||||||
@ -134,7 +134,7 @@ static void MD4Update(MD4_CTX *context, const unsigned char *input,
|
|||||||
i = 0;
|
i = 0;
|
||||||
|
|
||||||
/* Buffer remaining input */
|
/* Buffer remaining input */
|
||||||
memcpy((void *)&context->buffer[bufindex], (void *)&input[i], inputLen-i);
|
memcpy(&context->buffer[bufindex], &input[i], inputLen-i);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* MD4 padding. */
|
/* MD4 padding. */
|
||||||
|
@ -205,7 +205,7 @@ static void MD5_Update (struct md5_ctx *context, /* context */
|
|||||||
|
|
||||||
/* Transform as many times as possible. */
|
/* Transform as many times as possible. */
|
||||||
if(inputLen >= partLen) {
|
if(inputLen >= partLen) {
|
||||||
memcpy((void *)&context->buffer[bufindex], (void *)input, partLen);
|
memcpy(&context->buffer[bufindex], input, partLen);
|
||||||
MD5Transform(context->state, context->buffer);
|
MD5Transform(context->state, context->buffer);
|
||||||
|
|
||||||
for (i = partLen; i + 63 < inputLen; i += 64)
|
for (i = partLen; i + 63 < inputLen; i += 64)
|
||||||
@ -217,7 +217,7 @@ static void MD5_Update (struct md5_ctx *context, /* context */
|
|||||||
i = 0;
|
i = 0;
|
||||||
|
|
||||||
/* Buffer remaining input */
|
/* 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
|
/* MD5 finalization. Ends an MD5 message-digest operation, writing the
|
||||||
|
Loading…
Reference in New Issue
Block a user