diff options
author | DJ Delorie <dj@redhat.com> | 2002-09-20 13:45:20 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2002-09-20 13:45:20 +0000 |
commit | 585cc78f65f55dd5834911fbbe21b654c52f7bee (patch) | |
tree | a43a631b29706b85c9ab12c6c91181d2e7e07671 /libiberty/md5.c | |
parent | 6d305052679525c19163606e9968d8c67b2ca4f2 (diff) | |
download | gdb-585cc78f65f55dd5834911fbbe21b654c52f7bee.zip gdb-585cc78f65f55dd5834911fbbe21b654c52f7bee.tar.gz gdb-585cc78f65f55dd5834911fbbe21b654c52f7bee.tar.bz2 |
merge from gcc
Diffstat (limited to 'libiberty/md5.c')
-rw-r--r-- | libiberty/md5.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libiberty/md5.c b/libiberty/md5.c index 9450586..2e829fb 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; |