axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r950347 - in /axis/axis2/c/core/trunk: axiom/src/xpath/xpath.c src/modules/mod_addr/mod_addr.c
Date Wed, 02 Jun 2010 03:00:12 GMT
Author: nadiramra
Date: Wed Jun  2 03:00:12 2010
New Revision: 950347

URL: http://svn.apache.org/viewvc?rev=950347&view=rev
Log:
AXIS2C-1426 axutil_hash_set() usage require cast (warning on AIX)

Modified:
    axis/axis2/c/core/trunk/axiom/src/xpath/xpath.c
    axis/axis2/c/core/trunk/src/modules/mod_addr/mod_addr.c

Modified: axis/axis2/c/core/trunk/axiom/src/xpath/xpath.c
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/axiom/src/xpath/xpath.c?rev=950347&r1=950346&r2=950347&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/axiom/src/xpath/xpath.c (original)
+++ axis/axis2/c/core/trunk/axiom/src/xpath/xpath.c Wed Jun  2 03:00:12 2010
@@ -136,7 +136,7 @@ axiom_xpath_register_function(
             context->functions = axutil_hash_make(context->env);
         }
 
-        axutil_hash_set(context->functions, name, AXIS2_HASH_KEY_STRING, func);
+        axutil_hash_set(context->functions, name, AXIS2_HASH_KEY_STRING, (const void *)func);
     }
 }
 
@@ -149,7 +149,7 @@ axiom_xpath_get_function(
 
     if(context->functions)
     {
-        func = axutil_hash_get(context->functions, name, AXIS2_HASH_KEY_STRING);
+        func = (axiom_xpath_function_t)axutil_hash_get(context->functions, name, AXIS2_HASH_KEY_STRING);
     }
 
     return func;
@@ -171,8 +171,7 @@ axiom_xpath_register_namespace(
 
     if (prefix)
     {
-        axutil_hash_set(
-            context->namespaces, prefix, AXIS2_HASH_KEY_STRING, ns);
+        axutil_hash_set(context->namespaces, prefix, AXIS2_HASH_KEY_STRING, (const void
*)ns);
     }
 }
 
@@ -185,7 +184,7 @@ axiom_xpath_get_namespace(
 
     if (context->namespaces)
     {
-        ns = axutil_hash_get(context->namespaces, prefix, AXIS2_HASH_KEY_STRING);
+        ns = (axiom_namespace_t *)axutil_hash_get(context->namespaces, prefix, AXIS2_HASH_KEY_STRING);
     }
 
     return ns;

Modified: axis/axis2/c/core/trunk/src/modules/mod_addr/mod_addr.c
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/src/modules/mod_addr/mod_addr.c?rev=950347&r1=950346&r2=950347&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/src/modules/mod_addr/mod_addr.c (original)
+++ axis/axis2/c/core/trunk/src/modules/mod_addr/mod_addr.c Wed Jun  2 03:00:12 2010
@@ -105,11 +105,14 @@ axis2_mod_addr_fill_handler_create_func_
         AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "No memory. Cannot create the function
map");
         return AXIS2_FAILURE;
     }
-    axutil_hash_set(module->handler_create_func_map, ADDR_IN_HANDLER, AXIS2_HASH_KEY_STRING,
-        axis2_addr_in_handler_create);
 
-    axutil_hash_set(module->handler_create_func_map, ADDR_OUT_HANDLER, AXIS2_HASH_KEY_STRING,
-        axis2_addr_out_handler_create);
+    axutil_hash_set(module->handler_create_func_map,
+                    ADDR_IN_HANDLER, AXIS2_HASH_KEY_STRING,
+                    (const void *)axis2_addr_in_handler_create);
+
+    axutil_hash_set(module->handler_create_func_map,
+                    ADDR_OUT_HANDLER, AXIS2_HASH_KEY_STRING,
+                    (const void *)axis2_addr_out_handler_create);
 
     return AXIS2_SUCCESS;
 }



Mime
View raw message