joes 2004/07/05 10:32:02
Modified: glue/perl/xsbuilder/Apache/Request Apache__Request.h
Log:
Add XSRETURN(0) to apreq_xs_request_config and fix conditional in
apreq_xs_request_parse (croak on error, not success)
Revision Changes Path
1.37 +2 -1
httpd-apreq-2/glue/perl/xsbuilder/Apache/Request/Apache__Request.h
Index: Apache__Request.h
===================================================================
RCS file:
/home/cvs/httpd-apreq-2/glue/perl/xsbuilder/Apache/Request/Apache__Request.h,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- Apache__Request.h 5 Jul 2004 17:23:50 -0000 1.36
+++ Apache__Request.h 5 Jul 2004 17:32:02 -0000 1.37
@@ -184,6 +184,7 @@
"Unrecognized attribute %s", attr);
}
}
+ XSRETURN(0);
}
static XS(apreq_xs_request_parse)
@@ -200,7 +201,7 @@
while (s == APR_INCOMPLETE);
if (GIMME_V != G_VOID)
XSRETURN_IV(s);
- if (s == APR_SUCCESS)
+ if (s != APR_SUCCESS)
apreq_xs_croak(aTHX_ newHV(), s, "Apache::Request::parse",
"Apache::Request::Error");
}