aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2002-09-20 13:45:20 +0000
committerDJ Delorie <dj@redhat.com>2002-09-20 13:45:20 +0000
commit585cc78f65f55dd5834911fbbe21b654c52f7bee (patch)
treea43a631b29706b85c9ab12c6c91181d2e7e07671 /libiberty/md5.c
parent * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in (diff)
downloadbinutils-gdb-585cc78f65f55dd5834911fbbe21b654c52f7bee.tar.gz
binutils-gdb-585cc78f65f55dd5834911fbbe21b654c52f7bee.tar.bz2
binutils-gdb-585cc78f65f55dd5834911fbbe21b654c52f7bee.zip
merge from gcc
Diffstat (limited to 'libiberty/md5.c')
-rw-r--r--libiberty/md5.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libiberty/md5.c b/libiberty/md5.c
index 9450586961f..2e829fb3ee1 100644
--- a/libiberty/md5.c
+++ b/libiberty/md5.c
@@ -229,7 +229,7 @@ md5_process_bytes (buffer, len, ctx)
ctx->buflen = (left_over + add) & 63;
}
- buffer = (const char *) buffer + add;
+ buffer = (const void *) ((const char *) buffer + add);
len -= add;
}
@@ -237,7 +237,7 @@ md5_process_bytes (buffer, len, ctx)
if (len > 64)
{
md5_process_block (buffer, len & ~63, ctx);
- buffer = (const char *) buffer + (len & ~63);
+ buffer = (const void *) ((const char *) buffer + (len & ~63));
len &= 63;
}
@@ -269,7 +269,7 @@ md5_process_block (buffer, len, ctx)
struct md5_ctx *ctx;
{
md5_uint32 correct_words[16];
- const md5_uint32 *words = buffer;
+ const md5_uint32 *words = (const md5_uint32 *) buffer;
size_t nwords = len / sizeof (md5_uint32);
const md5_uint32 *endp = words + nwords;
md5_uint32 A = ctx->A;