jerenkrantz 02/01/24 17:12:28
Modified: perl-framework/c-modules/input_body_filter
mod_input_body_filter.c
perl-framework/c-modules/nntp_like mod_nntp_like.c
Log:
*readbytes is now readbytes, so remove the &zero construct.
(This show exactly why this change was the right thing to do.)
Revision Changes Path
1.7 +1 -1
httpd-test/perl-framework/c-modules/input_body_filter/mod_input_body_filter.c
Index: mod_input_body_filter.c
===================================================================
RCS file:
/home/cvs/httpd-test/perl-framework/c-modules/input_body_filter/mod_input_body_filter.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- mod_input_body_filter.c 19 Jan 2002 07:45:56 -0000 1.6
+++ mod_input_body_filter.c 25 Jan 2002 01:12:28 -0000 1.7
@@ -83,7 +83,7 @@
static int input_body_filter_handler(ap_filter_t *f, apr_bucket_brigade *bb,
ap_input_mode_t mode,
apr_read_type_e block,
- apr_off_t *readbytes)
+ apr_off_t readbytes)
{
apr_status_t rv;
apr_pool_t *p = f->r->pool;
1.4 +2 -4
httpd-test/perl-framework/c-modules/nntp_like/mod_nntp_like.c
Index: mod_nntp_like.c
===================================================================
RCS file:
/home/cvs/httpd-test/perl-framework/c-modules/nntp_like/mod_nntp_like.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- mod_nntp_like.c 19 Jan 2002 07:45:56 -0000 1.3
+++ mod_nntp_like.c 25 Jan 2002 01:12:28 -0000 1.4
@@ -71,12 +71,11 @@
{
apr_bucket_brigade *bb;
apr_status_t rv;
- apr_off_t zero = 0;
bb = apr_brigade_create(c->pool);
rv = ap_get_brigade(c->input_filters, bb, AP_MODE_INIT,
- APR_BLOCK_READ, &zero);
+ APR_BLOCK_READ, 0);
apr_brigade_destroy(bb);
@@ -103,7 +102,6 @@
{
apr_bucket_brigade *bb;
apr_status_t rv;
- apr_off_t zero = 0;
nntp_like_srv_cfg_t *cfg =
ap_get_module_config(c->base_server->module_config,
&nntp_like_module);
@@ -128,7 +126,7 @@
for (;;) {
if ((rv = ap_get_brigade(c->input_filters, bb,
AP_MODE_GETLINE,
- APR_BLOCK_READ, &zero) != APR_SUCCESS ||
+ APR_BLOCK_READ, 0) != APR_SUCCESS ||
APR_BRIGADE_EMPTY(bb)))
{
apr_brigade_destroy(bb);