diff options
author | Christophe Jaillet <jailletc36@apache.org> | 2015-01-27 07:22:13 +0000 |
---|---|---|
committer | Christophe Jaillet <jailletc36@apache.org> | 2015-01-27 07:22:13 +0000 |
commit | cba8b9215e316a5c122846ebb14dbea3ebe804c6 (patch) | |
tree | 430a1b1a772896f5f1116c13ed896f9fb688fd8e /docs/manual/developer | |
parent | b9a774bb2f9324d453b76ad83184de6146c92a90 (diff) | |
download | httpd-cba8b9215e316a5c122846ebb14dbea3ebe804c6.tar.gz |
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
Diffstat (limited to 'docs/manual/developer')
-rw-r--r-- | docs/manual/developer/output-filters.html.en | 7 | ||||
-rw-r--r-- | 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).</p> <p>There are a variety of functions and macros for traversing and - manipulating bucket brigades; see the <a href="http://apr.apache.org/docs/apr-util/trunk/group___a_p_r___util___bucket___brigades.html">apr_bucket.h</a> + manipulating bucket brigades; see the <a href="http://apr.apache.org/docs/apr-util/trunk/group___a_p_r___util___bucket___brigades.html">apr_buckets.h</a> header for complete coverage. Commonly used macros include:</p> <dl> @@ -254,12 +254,11 @@ <div class="example"><h3>Bad output filter -- do not imitate!</h3><pre class="prettyprint lang-c">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);</pre> @@ -277,7 +276,7 @@ return ap_pass_brigade(bb);</pre> <div class="example"><h3>Better output filter</h3><pre class="prettyprint lang-c">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 @@ <p>There are a variety of functions and macros for traversing and manipulating bucket brigades; see the <a - href="http://apr.apache.org/docs/apr-util/trunk/group___a_p_r___util___bucket___brigades.html">apr_bucket.h</a> + href="http://apr.apache.org/docs/apr-util/trunk/group___a_p_r___util___bucket___brigades.html">apr_buckets.h</a> header for complete coverage. Commonly used macros include:</p> <dl> @@ -252,12 +252,11 @@ <highlight language="c"> 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); <highlight language="c"> 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); |