Add const to a couple of casts to silence some of the warnings Bruce
has let loose on us.
This commit is contained in:
parent
bb43e4903b
commit
6377ac72be
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user