Add const to a couple of casts to silence some of the warnings Bruce

has let loose on us.
This commit is contained in:
Poul-Henning Kamp 1997-10-21 13:28:36 +00:00
parent 7ffe3d1c5d
commit c988324000
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=30631

View File

@ -22,7 +22,7 @@
* These notices must be retained in any copies of any part of this
* documentation and/or software.
*
* $Id: md5c.c,v 1.8 1997/02/22 09:39:14 peter Exp $
* $Id: md5c.c,v 1.9 1997/08/02 14:31:35 bde Exp $
*
* This code is the same as the code published by RSA Inc. It has been
* edited for clarity and style only.
@ -173,7 +173,7 @@ MD5Update (context, input, inputLen)
/* Transform as many times as possible. */
if (inputLen >= partLen) {
memcpy((void *)&context->buffer[index], (void *)input,
memcpy((void *)&context->buffer[index], (const void *)input,
partLen);
MD5Transform (context->state, context->buffer);
@ -186,7 +186,7 @@ MD5Update (context, input, inputLen)
i = 0;
/* Buffer remaining input */
memcpy ((void *)&context->buffer[index], (void *)&input[i],
memcpy ((void *)&context->buffer[index], (const void *)&input[i],
inputLen-i);
}