diff options
author | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2001-11-19 11:11:37 +0000 |
---|---|---|
committer | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2001-11-19 11:11:37 +0000 |
commit | e7d5c0b74a75d3ceba0ce452b2dae8017c4d4c79 (patch) | |
tree | 04e03a5c09aab0229c5ff8e504d8034bb8276b54 /passwd | |
parent | 0e6cc32940aeb6cafc6815f69c98ea4111374226 (diff) | |
download | libapr-e7d5c0b74a75d3ceba0ce452b2dae8017c4d4c79.tar.gz |
apr md5 and apr xlate have different APIs w.r.t. the buffers they
operate on, so fix it up at the interface between them to avoid
unnecessary warnings
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62519 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'passwd')
-rw-r--r-- | passwd/apr_md5.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/passwd/apr_md5.c b/passwd/apr_md5.c index e2fd57a60..5d7132b1b 100644 --- a/passwd/apr_md5.c +++ b/passwd/apr_md5.c @@ -272,8 +272,10 @@ APR_DECLARE(apr_status_t) apr_md5_update(apr_md5_ctx_t *context, if (inputLen >= partLen) { if (context->xlate) { inbytes_left = outbytes_left = partLen; - apr_xlate_conv_buffer(context->xlate, input, &inbytes_left, - &context->buffer[idx], &outbytes_left); + apr_xlate_conv_buffer(context->xlate, (const char *)input, + &inbytes_left, + (char *)&context->buffer[idx], + &outbytes_left); } else { memcpy(&context->buffer[idx], input, partLen); @@ -284,8 +286,9 @@ APR_DECLARE(apr_status_t) apr_md5_update(apr_md5_ctx_t *context, if (context->xlate) { unsigned char inp_tmp[64]; inbytes_left = outbytes_left = 64; - apr_xlate_conv_buffer(context->xlate, &input[i], &inbytes_left, - inp_tmp, &outbytes_left); + apr_xlate_conv_buffer(context->xlate, (const char *)&input[i], + &inbytes_left, (char *)inp_tmp, + &outbytes_left); MD5Transform(context->state, inp_tmp); } else { @@ -301,8 +304,9 @@ APR_DECLARE(apr_status_t) apr_md5_update(apr_md5_ctx_t *context, /* Buffer remaining input */ if (context->xlate) { inbytes_left = outbytes_left = inputLen - i; - apr_xlate_conv_buffer(context->xlate, &input[i], &inbytes_left, - &context->buffer[idx], &outbytes_left); + apr_xlate_conv_buffer(context->xlate, (const char *)&input[i], + &inbytes_left, (char *)&context->buffer[idx], + &outbytes_left); } else { memcpy(&context->buffer[idx], &input[i], inputLen - i); |