From: Daniel Gruno Date: Wed, 11 Apr 2012 14:49:10 +0000 (+0000) Subject: Cast config vars as (example_config*) in examples. X-Git-Tag: 2.5.0-alpha~7201 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40defd476646cfbffb73d85ad91632912f073fee;p=apache Cast config vars as (example_config*) in examples. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1324791 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/developer/modguide.html.en b/docs/manual/developer/modguide.html.en index 7d463085c6..85ac832d31 100644 --- a/docs/manual/developer/modguide.html.en +++ b/docs/manual/developer/modguide.html.en @@ -1242,9 +1242,9 @@ two configurations and decide how they are to be merged:
 void* merge_dir_conf(apr_pool_t* pool, void* BASE, void* ADD) {
-    example_config* base = BASE ;
-    example_config* add = ADD ;
-    example_config* conf = create_dir_conf(pool, "Merged configuration");
+    example_config* base = (example_config *) BASE ;
+    example_config* add = (example_config *) ADD ;
+    example_config* conf = (example_config *) create_dir_conf(pool, "Merged configuration");
     
     conf->enabled = ( add->enabled == 0 ) ? base->enabled : add->enabled ;
     conf->typeOfAction = add->typeOfAction ? add->typeOfAction : base->typeOfAction;
@@ -1503,9 +1503,9 @@ module AP_MODULE_DECLARE_DATA    example_module =<
 void *merge_dir_conf(apr_pool_t *pool, void *BASE, void *ADD)
 {
     /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
-    example_config    *base = BASE;
-    example_config    *add = ADD;
-    example_config    *conf = create_dir_conf(pool, "Merged configuration");
+    example_config    *base = (example_config *) BASE;
+    example_config    *add = (example_config *) ADD;
+    example_config    *conf = (example_config *) create_dir_conf(pool, "Merged configuration");
     /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
 
     conf->enabled = (add->enabled == 0) ? base->enabled : add->enabled;
diff --git a/docs/manual/developer/modguide.xml b/docs/manual/developer/modguide.xml
index fae6fb7e33..b7a1a66b11 100644
--- a/docs/manual/developer/modguide.xml
+++ b/docs/manual/developer/modguide.xml
@@ -1241,9 +1241,9 @@ two configurations and decide how they are to be merged:
 
 
 void* merge_dir_conf(apr_pool_t* pool, void* BASE, void* ADD) {
-    example_config* base = BASE ;
-    example_config* add = ADD ;
-    example_config* conf = create_dir_conf(pool, "Merged configuration");
+    example_config* base = (example_config *) BASE ;
+    example_config* add = (example_config *) ADD ;
+    example_config* conf = (example_config *) create_dir_conf(pool, "Merged configuration");
     
     conf->enabled = ( add->enabled == 0 ) ? base->enabled : add->enabled ;
     conf->typeOfAction = add->typeOfAction ? add->typeOfAction : base->typeOfAction;
@@ -1502,9 +1502,9 @@ module AP_MODULE_DECLARE_DATA    example_module =<
 void *merge_dir_conf(apr_pool_t *pool, void *BASE, void *ADD)
 {
     /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
-    example_config    *base = BASE;
-    example_config    *add = ADD;
-    example_config    *conf = create_dir_conf(pool, "Merged configuration");
+    example_config    *base = (example_config *) BASE;
+    example_config    *add = (example_config *) ADD;
+    example_config    *conf = (example_config *) create_dir_conf(pool, "Merged configuration");
     /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
 
     conf->enabled = (add->enabled == 0) ? base->enabled : add->enabled;