diff options
author | phk <phk@FreeBSD.org> | 1997-10-21 13:28:36 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1997-10-21 13:28:36 +0000 |
commit | 14ea303119d4fef4d7db235a59229762ba76f3de (patch) | |
tree | 3b0e0d0ac7d83dfb4d498ef71ef79c86a3973e42 /sys/kern/md5c.c | |
parent | c460dbf96be1d501d4db90d94bcdba5f8e784597 (diff) | |
download | FreeBSD-src-14ea303119d4fef4d7db235a59229762ba76f3de.zip FreeBSD-src-14ea303119d4fef4d7db235a59229762ba76f3de.tar.gz |
Add const to a couple of casts to silence some of the warnings Bruce
has let loose on us.
Diffstat (limited to 'sys/kern/md5c.c')
-rw-r--r-- | sys/kern/md5c.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/md5c.c b/sys/kern/md5c.c index 24dca79..606e3c8 100644 --- a/sys/kern/md5c.c +++ b/sys/kern/md5c.c @@ -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); } |