Author: geoff Date: Tue Jul 19 05:22:13 2005 New Revision: 219664 URL: http://svn.apache.org/viewcvs?rev=219664&view=rev Log: various warning fixes for gcc 4.x thanks again to joe orton
Modified: perl/modperl/trunk/xs/APR/Base64/APR__Base64.h Modified: perl/modperl/trunk/xs/APR/Base64/APR__Base64.h URL: http://svn.apache.org/viewcvs/perl/modperl/trunk/xs/APR/Base64/APR__Base64.h?rev=219664&r1=219663&r2=219664&view=diff ============================================================================== --- perl/modperl/trunk/xs/APR/Base64/APR__Base64.h (original) +++ perl/modperl/trunk/xs/APR/Base64/APR__Base64.h Tue Jul 19 05:22:13 2005 @@ -15,13 +15,13 @@ /* apr_base64_encode_len and apr_base64_encode_binary give length that * includes the terminating '\0' */ -#define mpxs_APR__Base64_encode_len(len) apr_base64_encode_len(len) - 1; +#define mpxs_APR__Base64_encode_len(len) (apr_base64_encode_len(len) - 1) static MP_INLINE void mpxs_apr_base64_encode(pTHX_ SV *sv, SV *arg) { STRLEN len; int encoded_len; - char *data = SvPV(arg, len); + unsigned char *data = (unsigned char *)SvPV(arg, len); mpxs_sv_grow(sv, apr_base64_encode_len(len) - 1); encoded_len = apr_base64_encode_binary(SvPVX(sv), data, len); mpxs_sv_cur_set(sv, encoded_len - 1); @@ -33,7 +33,7 @@ int decoded_len; char *data = SvPV(arg, len); mpxs_sv_grow(sv, apr_base64_decode_len(data)); - decoded_len = apr_base64_decode_binary(SvPVX(sv), data); + decoded_len = apr_base64_decode_binary((unsigned char *)SvPVX(sv), data); mpxs_sv_cur_set(sv, decoded_len); }