From cba8b9215e316a5c122846ebb14dbea3ebe804c6 Mon Sep 17 00:00:00 2001 From: Christophe Jaillet Date: Tue, 27 Jan 2015 07:22:13 +0000 Subject: [PATCH] Fix doc as spotted by mebjas. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1654985 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/developer/output-filters.html.en | 7 +++---- docs/manual/developer/output-filters.xml | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/docs/manual/developer/output-filters.html.en b/docs/manual/developer/output-filters.html.en index 49b9a9eae7..440befbc74 100644 --- a/docs/manual/developer/output-filters.html.en +++ b/docs/manual/developer/output-filters.html.en @@ -152,7 +152,7 @@ behaviour (i.e. will crash the process).

There are a variety of functions and macros for traversing and - manipulating bucket brigades; see the apr_bucket.h + manipulating bucket brigades; see the apr_buckets.h header for complete coverage. Commonly used macros include:

@@ -254,12 +254,11 @@

Bad output filter -- do not imitate!

apr_bucket *e = APR_BRIGADE_FIRST(bb);
 const char *data;
-apr_size_t len;
+apr_size_t length;
 
 while (e != APR_BRIGADE_SENTINEL(bb)) {
     apr_bucket_read(e, &data, &length, APR_BLOCK_READ);
     e = APR_BUCKET_NEXT(e);
-
 }
 
 return ap_pass_brigade(bb);
@@ -277,7 +276,7 @@ return ap_pass_brigade(bb);

Better output filter

apr_bucket *e;
 const char *data;
-apr_size_t len;
+apr_size_t length;
 
 while ((e = APR_BRIGADE_FIRST(bb)) != APR_BRIGADE_SENTINEL(bb)) {
    rv = apr_bucket_read(e, &data, &length, APR_BLOCK_READ);
diff --git a/docs/manual/developer/output-filters.xml b/docs/manual/developer/output-filters.xml
index afa61da162..25658e7d69 100644
--- a/docs/manual/developer/output-filters.xml
+++ b/docs/manual/developer/output-filters.xml
@@ -147,7 +147,7 @@
 
     

There are a variety of functions and macros for traversing and manipulating bucket brigades; see the apr_bucket.h + href="http://apr.apache.org/docs/apr-util/trunk/group___a_p_r___util___bucket___brigades.html">apr_buckets.h header for complete coverage. Commonly used macros include:

@@ -252,12 +252,11 @@ apr_bucket *e = APR_BRIGADE_FIRST(bb); const char *data; -apr_size_t len; +apr_size_t length; while (e != APR_BRIGADE_SENTINEL(bb)) { apr_bucket_read(e, &data, &length, APR_BLOCK_READ); e = APR_BUCKET_NEXT(e); - } return ap_pass_brigade(bb); @@ -279,7 +278,7 @@ return ap_pass_brigade(bb); apr_bucket *e; const char *data; -apr_size_t len; +apr_size_t length; while ((e = APR_BRIGADE_FIRST(bb)) != APR_BRIGADE_SENTINEL(bb)) { rv = apr_bucket_read(e, &data, &length, APR_BLOCK_READ); -- 2.40.0