]> granicus.if.org Git - apache/commitdiff
Fix doc as spotted by mebjas.
authorChristophe Jaillet <jailletc36@apache.org>
Tue, 27 Jan 2015 07:22:13 +0000 (07:22 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Tue, 27 Jan 2015 07:22:13 +0000 (07:22 +0000)
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
docs/manual/developer/output-filters.xml

index 49b9a9eae7fbd73f6f3e21e1fdaac01645589824..440befbc740f1471b60be7d97e716e31d36e7249 100644 (file)
     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>
 
     <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, &amp;data, &amp;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, &amp;data, &amp;length, APR_BLOCK_READ);
index afa61da162f2cd1c78d2174872a9bcdec8611937..25658e7d6996177fe4cf1209175277e5df170d13 100644 (file)
 
     <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>
     <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, &amp;data, &amp;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, &amp;data, &amp;length, APR_BLOCK_READ);