You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2015/01/27 08:11:38 UTC

svn commit: r1654983 - in /httpd/httpd/trunk/docs/manual/developer: output-filters.html.en output-filters.xml

Author: jailletc36
Date: Tue Jan 27 07:11:37 2015
New Revision: 1654983

URL: http://svn.apache.org/r1654983
Log:
Fix doc as spotted by mrskman.

Modified:
    httpd/httpd/trunk/docs/manual/developer/output-filters.html.en
    httpd/httpd/trunk/docs/manual/developer/output-filters.xml

Modified: httpd/httpd/trunk/docs/manual/developer/output-filters.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/developer/output-filters.html.en?rev=1654983&r1=1654982&r2=1654983&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/developer/output-filters.html.en (original)
+++ httpd/httpd/trunk/docs/manual/developer/output-filters.html.en Tue Jan 27 07:11:37 2015
@@ -305,10 +305,10 @@ while ((e = APR_BRIGADE_FIRST(bb)) != AP
     temporary brigade in such a structure, to avoid having to allocate
     a new brigade per invocation as described in the <a href="#brigade">Brigade structure</a> section.</p>
 
-  <div class="example"><h3>Example code to maintain filter state</h3><pre class="prettyprint lang-c">struct dummy_state {
+    <div class="example"><h3>Example code to maintain filter state</h3><pre class="prettyprint lang-c">struct dummy_state {
    apr_bucket_brigade *tmpbb;
    int filter_state;
-   ....
+   ...
 };
 
 apr_status_t dummy_filter(ap_filter_t *f, apr_bucket_brigade *bb)
@@ -321,7 +321,7 @@ apr_status_t dummy_filter(ap_filter_t *f
     
        /* First invocation for this response: initialise state structure.
         */
-       f-&gt;ctx = state = apr_palloc(sizeof *state, f-&gt;r-&gt;pool);
+       f-&gt;ctx = state = apr_palloc(f-&gt;r-&gt;pool, sizeof *state);
 
        state-&gt;tmpbb = apr_brigade_create(f-&gt;r-&gt;pool, f-&gt;c-&gt;bucket_alloc);
        state-&gt;filter_state = ...;

Modified: httpd/httpd/trunk/docs/manual/developer/output-filters.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/developer/output-filters.xml?rev=1654983&r1=1654982&r2=1654983&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/developer/output-filters.xml (original)
+++ httpd/httpd/trunk/docs/manual/developer/output-filters.xml Tue Jan 27 07:11:37 2015
@@ -309,12 +309,12 @@ while ((e = APR_BRIGADE_FIRST(bb)) != AP
     a new brigade per invocation as described in the <a
     href="#brigade">Brigade structure</a> section.</p>
 
-  <example><title>Example code to maintain filter state</title>
-  <highlight language="c">
+    <example><title>Example code to maintain filter state</title>
+<highlight language="c">
 struct dummy_state {
    apr_bucket_brigade *tmpbb;
    int filter_state;
-   ....
+   ...
 };
 
 apr_status_t dummy_filter(ap_filter_t *f, apr_bucket_brigade *bb)
@@ -327,7 +327,7 @@ apr_status_t dummy_filter(ap_filter_t *f
     
        /* First invocation for this response: initialise state structure.
         */
-       f->ctx = state = apr_palloc(sizeof *state, f->r->pool);
+       f->ctx = state = apr_palloc(f->r->pool, sizeof *state);
 
        state->tmpbb = apr_brigade_create(f->r->pool, f->c->bucket_alloc);
        state->filter_state = ...;