Author: stas
Date: Fri Jul 8 12:08:53 2005
New Revision: 209860
URL: http://svn.apache.org/viewcvs?rev=209860&view=rev
Log:
perl blead fixes:
- xhv->xhv_array doesn't exist anymore, using the wrapper HvARRAY(hv)
- types casting
Modified:
perl/modperl/trunk/src/modules/perl/modperl_util.c
Modified: perl/modperl/trunk/src/modules/perl/modperl_util.c
URL:
http://svn.apache.org/viewcvs/perl/modperl/trunk/src/modules/perl/modperl_util.c?rev=209860&r1=209859&r2=209860&view=diff
==============================================================================
--- perl/modperl/trunk/src/modules/perl/modperl_util.c (original)
+++ perl/modperl/trunk/src/modules/perl/modperl_util.c Fri Jul 8 12:08:53 2005
@@ -136,7 +136,7 @@
break;
default:
Perl_croak(aTHX_ "panic: unsupported request_rec type %d",
- SvTYPE(rv));
+ (int)SvTYPE(rv));
}
}
@@ -408,7 +408,7 @@
register HE *entry;
xhv = (XPVHV *)SvANY(hv);
- if (!xhv->xhv_array) {
+ if (!HvARRAY(hv)) {
return 0;
}
@@ -422,7 +422,7 @@
PERL_HASH(hash, key, klen);
}
- entry = ((HE**)xhv->xhv_array)[hash & (I32)xhv->xhv_max];
+ entry = ((HE**)HvARRAY(hv))[hash & (I32)xhv->xhv_max];
for (; entry; entry = HeNEXT(entry)) {
if (HeHASH(entry) != hash) {
@@ -633,7 +633,7 @@
if (r->finfo.size != size) {
SvREFCNT_dec(sv);
Perl_croak(aTHX_ "Error: read %d bytes, expected %d ('%s')",
- size, r->finfo.size, r->filename);
+ size, (apr_size_t)r->finfo.size, r->filename);
}
rc = apr_file_close(file);