]> granicus.if.org Git - apache/commitdiff
Fix doc as spotted by mrskman.
authorChristophe Jaillet <jailletc36@apache.org>
Tue, 27 Jan 2015 07:10:52 +0000 (07:10 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Tue, 27 Jan 2015 07:10:52 +0000 (07:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1654982 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/developer/output-filters.html.en
docs/manual/developer/output-filters.xml

index 6e8e70a6786e8714bbb4ac532d6d4b43d53edcff..49b9a9eae7fbd73f6f3e21e1fdaac01645589824 100644 (file)
@@ -305,10 +305,10 @@ while ((e = APR_BRIGADE_FIRST(bb)) != APR_BRIGADE_SENTINEL(bb)) {
     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, apr_bucket_brigade *bb)
     
        /* 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 = ...;
index ce9a9689146e4134cea44f1582f87b25c07cb470..afa61da162f2cd1c78d2174872a9bcdec8611937 100644 (file)
@@ -309,12 +309,12 @@ while ((e = APR_BRIGADE_FIRST(bb)) != APR_BRIGADE_SENTINEL(bb)) {
     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, apr_bucket_brigade *bb)
     
        /* 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 = ...;