You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2006/06/06 06:47:34 UTC

svn commit: r412001 - in /webservices/axis2/trunk/c: axiom/include/ axiom/src/attachments/ include/ modules/core/clientapi/ modules/core/context/ samples/client/echo/ samples/client/google/ samples/client/math/ samples/client/mtom/ samples/client/notif...

Author: samisa
Date: Mon Jun  5 21:47:33 2006
New Revision: 412001

URL: http://svn.apache.org/viewvc?rev=412001&view=rev
Log:
more -Wwrite-strings related fixes

Modified:
    webservices/axis2/trunk/c/axiom/include/axis2_data_handler.h
    webservices/axis2/trunk/c/axiom/src/attachments/data_handler.c
    webservices/axis2/trunk/c/include/axis2_ctx.h
    webservices/axis2/trunk/c/include/axis2_options.h
    webservices/axis2/trunk/c/include/axis2_stub.h
    webservices/axis2/trunk/c/include/axis2_svc_client.h
    webservices/axis2/trunk/c/modules/core/clientapi/options.c
    webservices/axis2/trunk/c/modules/core/clientapi/stub.c
    webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c
    webservices/axis2/trunk/c/modules/core/context/ctx.c
    webservices/axis2/trunk/c/samples/client/echo/echo.c
    webservices/axis2/trunk/c/samples/client/google/google_client.c
    webservices/axis2/trunk/c/samples/client/math/axis2_math_stub.c
    webservices/axis2/trunk/c/samples/client/math/axis2_math_stub.h
    webservices/axis2/trunk/c/samples/client/math/math_client.c
    webservices/axis2/trunk/c/samples/client/mtom/mtom_client.c
    webservices/axis2/trunk/c/samples/client/notify/notify_client.c
    webservices/axis2/trunk/c/samples/server/mtom/mtom.c
    webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking.c
    webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_addr.c
    webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_dual.c
    webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_soap11.c
    webservices/axis2/trunk/c/samples/user_guide/clients/echo_non_blocking.c
    webservices/axis2/trunk/c/samples/user_guide/clients/echo_non_blocking_dual.c
    webservices/axis2/trunk/c/samples/user_guide/clients/echo_rest.c
    webservices/axis2/trunk/c/util/include/axis2_array_list.h
    webservices/axis2/trunk/c/util/src/array_list.c

Modified: webservices/axis2/trunk/c/axiom/include/axis2_data_handler.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/include/axis2_data_handler.h?rev=412001&r1=412000&r2=412001&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/include/axis2_data_handler.h (original)
+++ webservices/axis2/trunk/c/axiom/include/axis2_data_handler.h Mon Jun  5 21:47:33 2006
@@ -115,7 +115,9 @@
  * @return pointer to newly created data_handler
  */
 AXIS2_EXTERN axis2_data_handler_t * AXIS2_CALL 
-axis2_data_handler_create (const axis2_env_t *env, axis2_char_t *file_name, axis2_char_t *mime_type);
+axis2_data_handler_create (const axis2_env_t *env, 
+    const axis2_char_t *file_name, 
+    const axis2_char_t *mime_type);
 
 /*************************** Function macros **********************************/
 

Modified: webservices/axis2/trunk/c/axiom/src/attachments/data_handler.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/attachments/data_handler.c?rev=412001&r1=412000&r2=412001&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/attachments/data_handler.c (original)
+++ webservices/axis2/trunk/c/axiom/src/attachments/data_handler.c Mon Jun  5 21:47:33 2006
@@ -60,7 +60,9 @@
 /************************** End of Function headers ************************/
 
 AXIS2_EXTERN axis2_data_handler_t * AXIS2_CALL
-axis2_data_handler_create (const axis2_env_t *env, axis2_char_t *file_name, axis2_char_t *mime_type)
+axis2_data_handler_create (const axis2_env_t *env, 
+    const axis2_char_t *file_name, 
+    const axis2_char_t *mime_type)
 {
     axis2_data_handler_impl_t *data_handler_impl = NULL;
     

Modified: webservices/axis2/trunk/c/include/axis2_ctx.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_ctx.h?rev=412001&r1=412000&r2=412001&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_ctx.h (original)
+++ webservices/axis2/trunk/c/include/axis2_ctx.h Mon Jun  5 21:47:33 2006
@@ -58,9 +58,9 @@
     axis2_status_t (AXIS2_CALL *
     set_property)(struct axis2_ctx *ctx, 
                     const axis2_env_t *env, 
-                    axis2_char_t *key, 
+                    const axis2_char_t *key, 
                     axis2_property_t *value, 
-                    axis2_bool_t persistent);
+                    const axis2_bool_t persistent);
     
     /**
      * @param key

Modified: webservices/axis2/trunk/c/include/axis2_options.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_options.h?rev=412001&r1=412000&r2=412001&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_options.h (original)
+++ webservices/axis2/trunk/c/include/axis2_options.h Mon Jun  5 21:47:33 2006
@@ -154,7 +154,7 @@
    void (AXIS2_CALL *
    set_action)(struct axis2_options *options,
             const axis2_env_t *env,
-            axis2_char_t *action);
+            const axis2_char_t *action);
 
    void (AXIS2_CALL *
    set_fault_to)(struct axis2_options *options,
@@ -221,7 +221,7 @@
    set_property)(struct axis2_options *options,
                const axis2_env_t *env,
                const axis2_char_t *property_key,
-               void *property);      
+               const void *property);      
             
 
    void (AXIS2_CALL *

Modified: webservices/axis2/trunk/c/include/axis2_stub.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_stub.h?rev=412001&r1=412000&r2=412001&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_stub.h (original)
+++ webservices/axis2/trunk/c/include/axis2_stub.h Mon Jun  5 21:47:33 2006
@@ -124,8 +124,8 @@
  */
 AXIS2_EXTERN axis2_stub_t * AXIS2_CALL
 axis2_stub_create_with_endpoint_uri_and_client_home(const axis2_env_t *env,
-                                        axis2_char_t *endpoint_uri,
-                                        axis2_char_t *client_home);
+                                        const axis2_char_t *endpoint_uri,
+                                        const axis2_char_t *client_home);
 
 /*************************** Function macros **********************************/
 

Modified: webservices/axis2/trunk/c/include/axis2_svc_client.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_svc_client.h?rev=412001&r1=412000&r2=412001&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_svc_client.h (original)
+++ webservices/axis2/trunk/c/include/axis2_svc_client.h Mon Jun  5 21:47:33 2006
@@ -137,7 +137,7 @@
     engage_module)(
         struct axis2_svc_client *svc_client,
         const axis2_env_t *env,
-        axis2_char_t *module_name);
+        const axis2_char_t *module_name);
 
   /**
     * Dis-engages the named module 
@@ -150,7 +150,7 @@
     disengage_module)(
         struct axis2_svc_client *svc_client,
         const axis2_env_t *env,
-        axis2_char_t *module_name);
+        const axis2_char_t *module_name);
     
   /**
     * Adds an XML element as a header to be sent to server side.
@@ -444,7 +444,7 @@
 AXIS2_EXTERN axis2_svc_client_t* AXIS2_CALL 
 axis2_svc_client_create(
     const axis2_env_t *env, 
-    axis2_char_t *client_home);
+    const axis2_char_t *client_home);
 
 /**
  * Creates a service client struct, for the given service and the configuration
@@ -461,7 +461,7 @@
     const axis2_env_t *env,
     axis2_conf_ctx_t *conf_ctx,
     axis2_svc_t *svc,
-    axis2_char_t *client_home);
+    const axis2_char_t *client_home);
    
 /************************** Start of function macros **************************/
 /** Gets the service consumed by service client */

Modified: webservices/axis2/trunk/c/modules/core/clientapi/options.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/clientapi/options.c?rev=412001&r1=412000&r2=412001&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/clientapi/options.c (original)
+++ webservices/axis2/trunk/c/modules/core/clientapi/options.c Mon Jun  5 21:47:33 2006
@@ -151,7 +151,7 @@
 void AXIS2_CALL 
 axis2_options_set_action(struct axis2_options *options,
                          const axis2_env_t *env,
-                         axis2_char_t *action);
+                         const axis2_char_t *action);
 
 void AXIS2_CALL 
 axis2_options_set_fault_to(struct axis2_options *options,
@@ -198,7 +198,7 @@
 axis2_options_set_property(struct axis2_options *options,
                           const axis2_env_t *env,
                           const axis2_char_t *property_key,
-                          void *property);
+                          const void *property);
 
 
 void AXIS2_CALL 
@@ -715,7 +715,7 @@
 void AXIS2_CALL 
 axis2_options_set_action(struct axis2_options *options,
                          const axis2_env_t *env,
-                         axis2_char_t *action)
+                         const axis2_char_t *action)
 {
    axis2_options_impl_t *options_impl = NULL;
     /*AXIS2_ENV_CHECK(env, NULL);*/
@@ -836,7 +836,7 @@
 axis2_options_set_property(struct axis2_options *options,
                           const axis2_env_t *env,
                           const axis2_char_t *property_key,
-                          void *property)
+                          const void *property)
 {
    axis2_options_impl_t *options_impl = NULL;
 

Modified: webservices/axis2/trunk/c/modules/core/clientapi/stub.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/clientapi/stub.c?rev=412001&r1=412000&r2=412001&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/clientapi/stub.c (original)
+++ webservices/axis2/trunk/c/modules/core/clientapi/stub.c Mon Jun  5 21:47:33 2006
@@ -173,8 +173,8 @@
 
 AXIS2_EXTERN axis2_stub_t * AXIS2_CALL 
 axis2_stub_create_with_endpoint_uri_and_client_home (const axis2_env_t *env,
-                                        axis2_char_t *endpoint_uri,
-                                        axis2_char_t *client_home)
+                                        const axis2_char_t *endpoint_uri,
+                                        const axis2_char_t *client_home)
 {
     axis2_stub_impl_t *stub_impl = NULL;
     axis2_endpoint_ref_t *endpoint_ref = NULL;

Modified: webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c?rev=412001&r1=412000&r2=412001&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c (original)
+++ webservices/axis2/trunk/c/modules/core/clientapi/svc_client.c Mon Jun  5 21:47:33 2006
@@ -97,12 +97,12 @@
 axis2_status_t AXIS2_CALL 
 axis2_svc_client_engage_module(struct axis2_svc_client *svc_client,
                     const axis2_env_t *env,
-                    axis2_char_t *module_name);
+                    const axis2_char_t *module_name);
 
 axis2_status_t AXIS2_CALL 
 axis2_svc_client_disengage_module(struct axis2_svc_client *svc_client,
                         const axis2_env_t *env,
-                        axis2_char_t *module_name);
+                        const axis2_char_t *module_name);
 
 axis2_status_t AXIS2_CALL 
 axis2_svc_client_add_header(struct axis2_svc_client *svc_client,
@@ -201,7 +201,7 @@
                   const axis2_env_t *env);
 
 axis2_svc_client_t* AXIS2_CALL
-axis2_svc_client_create(const axis2_env_t *env, axis2_char_t *client_home)
+axis2_svc_client_create(const axis2_env_t *env, const axis2_char_t *client_home)
 {
     axis2_svc_client_impl_t *svc_client_impl = NULL;
     
@@ -219,7 +219,7 @@
 axis2_svc_client_create_with_conf_ctx_and_svc(const axis2_env_t *env,
                                             axis2_conf_ctx_t *conf_ctx,
                                             axis2_svc_t *svc,
-                                 axis2_char_t *client_home)
+                                 const axis2_char_t *client_home)
 {
     axis2_svc_client_impl_t *svc_client_impl = NULL;
    axis2_svc_grp_t *svc_grp = NULL;
@@ -393,7 +393,7 @@
 axis2_status_t AXIS2_CALL 
 axis2_svc_client_engage_module(struct axis2_svc_client *svc_client,
                     const axis2_env_t *env,
-                    axis2_char_t *module_name)
+                    const axis2_char_t *module_name)
 {
     axis2_svc_client_impl_t *svc_client_impl = NULL;
    axis2_module_desc_t *module = NULL;
@@ -418,7 +418,7 @@
 axis2_status_t AXIS2_CALL 
 axis2_svc_client_disengage_module(struct axis2_svc_client *svc_client,
                         const axis2_env_t *env,
-                        axis2_char_t *module_name)
+                        const axis2_char_t *module_name)
 {
     axis2_svc_client_impl_t *svc_client_impl = NULL;
    axis2_module_desc_t *module = NULL;

Modified: webservices/axis2/trunk/c/modules/core/context/ctx.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/context/ctx.c?rev=412001&r1=412000&r2=412001&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/ctx.c (original)
+++ webservices/axis2/trunk/c/modules/core/context/ctx.c Mon Jun  5 21:47:33 2006
@@ -42,9 +42,9 @@
 axis2_status_t AXIS2_CALL 
 axis2_ctx_set_property(struct axis2_ctx *ctx, 
                        const axis2_env_t *env, 
-                       axis2_char_t *key, 
+                       const axis2_char_t *key, 
                        axis2_property_t *value, 
-                       axis2_bool_t persistent);
+                       const axis2_bool_t persistent);
 
 axis2_hash_t* AXIS2_CALL 
 axis2_ctx_get_non_persistent_map(struct axis2_ctx *ctx, 
@@ -127,9 +127,9 @@
 axis2_status_t AXIS2_CALL 
 axis2_ctx_set_property(struct axis2_ctx *ctx, 
                        const axis2_env_t *env, 
-                       axis2_char_t *key, 
+                       const axis2_char_t *key, 
                        axis2_property_t *value, 
-                       axis2_bool_t persistent) 
+                       const axis2_bool_t persistent) 
 {
     axis2_ctx_impl_t *ctx_impl = NULL;
     

Modified: webservices/axis2/trunk/c/samples/client/echo/echo.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/echo/echo.c?rev=412001&r1=412000&r2=412001&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/client/echo/echo.c (original)
+++ webservices/axis2/trunk/c/samples/client/echo/echo.c Mon Jun  5 21:47:33 2006
@@ -27,10 +27,10 @@
 int main(int argc, char** argv)
 {
     const axis2_env_t *env = NULL;
-    axis2_char_t *address = NULL;
+    const axis2_char_t *address = NULL;
     axis2_endpoint_ref_t* endpoint_ref = NULL;
     axis2_options_t *options = NULL;
-    axis2_char_t *client_home = NULL;
+    const axis2_char_t *client_home = NULL;
     axis2_svc_client_t* svc_client = NULL;
     axis2_om_node_t *payload = NULL;
     axis2_om_node_t *ret_node = NULL;

Modified: webservices/axis2/trunk/c/samples/client/google/google_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/google/google_client.c?rev=412001&r1=412000&r2=412001&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/client/google/google_client.c (original)
+++ webservices/axis2/trunk/c/samples/client/google/google_client.c Mon Jun  5 21:47:33 2006
@@ -21,25 +21,27 @@
 #include <axis2_client.h>
 
 axis2_om_node_t *
-build_soap_body_content(const axis2_env_t *env, axis2_char_t *operation, axis2_char_t *google_key, 
-                        axis2_char_t *word_to_spell);
+build_soap_body_content(const axis2_env_t *env, 
+    const axis2_char_t *operation, 
+    const axis2_char_t *google_key, 
+    const axis2_char_t *word_to_spell);
 
 void print_invalid_om(const axis2_env_t *env, axis2_om_node_t *ret_node);
 
 int main(int argc, char** argv)
 {
     const axis2_env_t *env = NULL;
-    axis2_char_t *address = NULL;
+    const axis2_char_t *address = NULL;
     axis2_endpoint_ref_t* endpoint_ref = NULL;
     axis2_options_t *options = NULL;
-    axis2_char_t *client_home = NULL;
+    const axis2_char_t *client_home = NULL;
     axis2_svc_client_t* svc_client = NULL;
     axis2_om_node_t *payload = NULL;
     axis2_om_node_t *ret_node = NULL;
     
-    axis2_char_t *google_key = NULL;
-    axis2_char_t *word_to_spell = NULL;
-    axis2_char_t *operation = NULL;
+    const axis2_char_t *google_key = NULL;
+    const axis2_char_t *word_to_spell = NULL;
+    const axis2_char_t *operation = NULL;
 
     operation = "doSpellingSuggestion";
     google_key = "00000000000000000000000000000000";
@@ -150,8 +152,10 @@
 }
 
 axis2_om_node_t *
-build_soap_body_content(const axis2_env_t *env, axis2_char_t *operation, axis2_char_t *google_key, 
-                        axis2_char_t *word_to_spell)
+build_soap_body_content(const axis2_env_t *env, 
+    const axis2_char_t *operation, 
+    const axis2_char_t *google_key, 
+    const axis2_char_t *word_to_spell)
 {
     axis2_om_node_t *google_om_node = NULL;
     axis2_om_element_t* google_om_ele = NULL;

Modified: webservices/axis2/trunk/c/samples/client/math/axis2_math_stub.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/math/axis2_math_stub.c?rev=412001&r1=412000&r2=412001&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/client/math/axis2_math_stub.c (original)
+++ webservices/axis2/trunk/c/samples/client/math/axis2_math_stub.c Mon Jun  5 21:47:33 2006
@@ -41,7 +41,6 @@
 void axis2_populate_axis_service( axis2_stub_t* stub, const axis2_env_t *env)
 {
    axis2_svc_client_t* svc_client = NULL;
-   axis2_qname_t *svc_qname =  NULL;
    axis2_qname_t *op_qname =  NULL;
    axis2_svc_t* svc = NULL;
    axis2_op_t* op = NULL;
@@ -75,8 +74,8 @@
 
 axis2_stub_t *
 axis2_math_stub_create_with_endpoint_uri_and_client_home(const axis2_env_t *env,
-                                            axis2_char_t *endpoint_uri,
-                                            axis2_char_t *client_home)
+                                            const axis2_char_t *endpoint_uri,
+                                            const axis2_char_t *client_home)
 {
     axis2_stub_t *stub = NULL;
     

Modified: webservices/axis2/trunk/c/samples/client/math/axis2_math_stub.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/math/axis2_math_stub.h?rev=412001&r1=412000&r2=412001&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/client/math/axis2_math_stub.h (original)
+++ webservices/axis2/trunk/c/samples/client/math/axis2_math_stub.h Mon Jun  5 21:47:33 2006
@@ -70,8 +70,8 @@
  */
 axis2_stub_t *
 axis2_math_stub_create_with_endpoint_uri_and_client_home(const axis2_env_t *env,
-                                            axis2_char_t *endpoint_uri,
-                                            axis2_char_t *client_home);
+                                            const axis2_char_t *endpoint_uri,
+                                            const axis2_char_t *client_home);
 /** @} */
 
 #ifdef __cplusplus

Modified: webservices/axis2/trunk/c/samples/client/math/math_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/math/math_client.c?rev=412001&r1=412000&r2=412001&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/client/math/math_client.c (original)
+++ webservices/axis2/trunk/c/samples/client/math/math_client.c Mon Jun  5 21:47:33 2006
@@ -22,7 +22,10 @@
 #include <axis2_client.h>
 
 axis2_om_node_t *
-build_om_programatically(const axis2_env_t *env, axis2_char_t *operation, axis2_char_t *param1, axis2_char_t *param2);
+build_om_programatically(const axis2_env_t *env, 
+    const axis2_char_t *operation, 
+    const axis2_char_t *param1, 
+    const axis2_char_t *param2);
 
 int main(int argc, char** argv)
 {
@@ -30,13 +33,13 @@
     axis2_om_node_t *node = NULL;
     axis2_status_t status = AXIS2_FAILURE;
     const axis2_env_t *env = NULL;
-    axis2_char_t *address = NULL;
-    axis2_char_t *client_home = NULL;
+    const axis2_char_t *address = NULL;
+    const axis2_char_t *client_home = NULL;
     axis2_om_node_t *ret_node = NULL;
 
-    axis2_char_t *operation = "add";
-    axis2_char_t *param1 = "40";
-    axis2_char_t *param2 = "8";
+    const axis2_char_t *operation = "add";
+    const axis2_char_t *param1 = "40";
+    const axis2_char_t *param2 = "8";
    
     env = axis2_env_create_all( "math_blocking.log", AXIS2_LOG_LEVEL_TRACE);
 
@@ -123,7 +126,10 @@
 }
 
 axis2_om_node_t *
-build_om_programatically(const axis2_env_t *env, axis2_char_t *operation, axis2_char_t *param1, axis2_char_t *param2)
+build_om_programatically(const axis2_env_t *env, 
+    const axis2_char_t *operation, 
+    const axis2_char_t *param1, 
+    const axis2_char_t *param2)
 {
     axis2_om_node_t *math_om_node = NULL;
     axis2_om_element_t* math_om_ele = NULL;

Modified: webservices/axis2/trunk/c/samples/client/mtom/mtom_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/mtom/mtom_client.c?rev=412001&r1=412000&r2=412001&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/client/mtom/mtom_client.c (original)
+++ webservices/axis2/trunk/c/samples/client/mtom/mtom_client.c Mon Jun  5 21:47:33 2006
@@ -21,20 +21,22 @@
 #include <axis2_client.h>
 
 axis2_om_node_t *
-build_om_programatically(const axis2_env_t *env, axis2_char_t *image_name, axis2_char_t *to_save_name);
+build_om_programatically(const axis2_env_t *env, 
+    const axis2_char_t *image_name, 
+    const axis2_char_t *to_save_name);
 
 int main(int argc, char** argv)
 {
     const axis2_env_t *env = NULL;
-    axis2_char_t *address = NULL;
+    const axis2_char_t *address = NULL;
     axis2_endpoint_ref_t* endpoint_ref = NULL;
     axis2_options_t *options = NULL;
-    axis2_char_t *client_home = NULL;
+    const axis2_char_t *client_home = NULL;
     axis2_svc_client_t* svc_client = NULL;
     axis2_om_node_t *payload = NULL;
     axis2_om_node_t *ret_node = NULL;
-    axis2_char_t *image_name = "resources/axis2.jpg";
-    axis2_char_t *to_save_name = "test.jpg";
+    const axis2_char_t *image_name = "resources/axis2.jpg";
+    const axis2_char_t *to_save_name = "test.jpg";
 
    
     /* Set up the environment */
@@ -132,7 +134,9 @@
 
 /* build SOAP request message content using OM */
 axis2_om_node_t *
-build_om_programatically(const axis2_env_t *env, axis2_char_t *image_name, axis2_char_t *to_save_name)
+build_om_programatically(const axis2_env_t *env, 
+    const axis2_char_t *image_name, 
+    const axis2_char_t *to_save_name)
 {
     axis2_om_node_t *mtom_om_node = NULL;
     axis2_om_element_t* mtom_om_ele = NULL;

Modified: webservices/axis2/trunk/c/samples/client/notify/notify_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/client/notify/notify_client.c?rev=412001&r1=412000&r2=412001&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/client/notify/notify_client.c (original)
+++ webservices/axis2/trunk/c/samples/client/notify/notify_client.c Mon Jun  5 21:47:33 2006
@@ -26,10 +26,10 @@
 int main(int argc, char** argv)
 {
     const axis2_env_t *env = NULL;
-    axis2_char_t *address = NULL;
+    const axis2_char_t *address = NULL;
     axis2_endpoint_ref_t* endpoint_ref = NULL;
     axis2_options_t *options = NULL;
-    axis2_char_t *client_home = NULL;
+    const axis2_char_t *client_home = NULL;
     axis2_svc_client_t* svc_client = NULL;
     axis2_om_node_t *payload = NULL;
     axis2_status_t status = AXIS2_FAILURE;

Modified: webservices/axis2/trunk/c/samples/server/mtom/mtom.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/server/mtom/mtom.c?rev=412001&r1=412000&r2=412001&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/server/mtom/mtom.c (original)
+++ webservices/axis2/trunk/c/samples/server/mtom/mtom.c Mon Jun  5 21:47:33 2006
@@ -111,8 +111,6 @@
 {
     axis2_om_node_t *mtom_om_node = NULL;
     axis2_om_element_t* mtom_om_ele = NULL;
-    axis2_om_node_t* text_om_node = NULL;
-    axis2_om_element_t * text_om_ele = NULL;
     axis2_om_namespace_t *ns1 = NULL;
     
     ns1 = axis2_om_namespace_create (env, "http://ws.apache.org/axis2/c/samples", "ns1");

Modified: webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking.c?rev=412001&r1=412000&r2=412001&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking.c (original)
+++ webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking.c Mon Jun  5 21:47:33 2006
@@ -22,10 +22,10 @@
 int main(int argc, char** argv)
 {
     const axis2_env_t *env = NULL;
-    axis2_char_t *address = NULL;
+    const axis2_char_t *address = NULL;
     axis2_endpoint_ref_t* endpoint_ref = NULL;
     axis2_options_t *options = NULL;
-    axis2_char_t *client_home = NULL;
+    const axis2_char_t *client_home = NULL;
     axis2_svc_client_t* svc_client = NULL;
     axis2_om_node_t *payload = NULL;
     axis2_om_node_t *ret_node = NULL;

Modified: webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_addr.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_addr.c?rev=412001&r1=412000&r2=412001&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_addr.c (original)
+++ webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_addr.c Mon Jun  5 21:47:33 2006
@@ -22,10 +22,10 @@
 int main(int argc, char** argv)
 {
     const axis2_env_t *env = NULL;
-    axis2_char_t *address = NULL;
+    const axis2_char_t *address = NULL;
     axis2_endpoint_ref_t* endpoint_ref = NULL;
     axis2_options_t *options = NULL;
-    axis2_char_t *client_home = NULL;
+    const axis2_char_t *client_home = NULL;
     axis2_svc_client_t* svc_client = NULL;
     axis2_om_node_t *payload = NULL;
     axis2_om_node_t *ret_node = NULL;

Modified: webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_dual.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_dual.c?rev=412001&r1=412000&r2=412001&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_dual.c (original)
+++ webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_dual.c Mon Jun  5 21:47:33 2006
@@ -22,11 +22,11 @@
 int main(int argc, char** argv)
 {
     const axis2_env_t *env = NULL;
-    axis2_char_t *address = NULL;
+    const axis2_char_t *address = NULL;
     axis2_endpoint_ref_t* endpoint_ref = NULL;
     axis2_endpoint_ref_t* reply_to = NULL;
     axis2_options_t *options = NULL;
-    axis2_char_t *client_home = NULL;
+    const axis2_char_t *client_home = NULL;
     axis2_svc_client_t* svc_client = NULL;
     axis2_om_node_t *payload = NULL;
     axis2_om_node_t *ret_node = NULL;

Modified: webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_soap11.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_soap11.c?rev=412001&r1=412000&r2=412001&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_soap11.c (original)
+++ webservices/axis2/trunk/c/samples/user_guide/clients/echo_blocking_soap11.c Mon Jun  5 21:47:33 2006
@@ -22,10 +22,10 @@
 int main(int argc, char** argv)
 {
     const axis2_env_t *env = NULL;
-    axis2_char_t *address = NULL;
+    const axis2_char_t *address = NULL;
     axis2_endpoint_ref_t* endpoint_ref = NULL;
     axis2_options_t *options = NULL;
-    axis2_char_t *client_home = NULL;
+    const axis2_char_t *client_home = NULL;
     axis2_svc_client_t* svc_client = NULL;
     axis2_om_node_t *payload = NULL;
     axis2_om_node_t *ret_node = NULL;

Modified: webservices/axis2/trunk/c/samples/user_guide/clients/echo_non_blocking.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/user_guide/clients/echo_non_blocking.c?rev=412001&r1=412000&r2=412001&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/user_guide/clients/echo_non_blocking.c (original)
+++ webservices/axis2/trunk/c/samples/user_guide/clients/echo_non_blocking.c Mon Jun  5 21:47:33 2006
@@ -36,10 +36,10 @@
 int main(int argc, char** argv)
 {
     const axis2_env_t *env = NULL;
-    axis2_char_t *address = NULL;
+    const axis2_char_t *address = NULL;
     axis2_endpoint_ref_t* endpoint_ref = NULL;
     axis2_options_t *options = NULL;
-    axis2_char_t *client_home = NULL;
+    const axis2_char_t *client_home = NULL;
     axis2_svc_client_t* svc_client = NULL;
     axis2_om_node_t *payload = NULL;
     axis2_callback_t *callback = NULL;

Modified: webservices/axis2/trunk/c/samples/user_guide/clients/echo_non_blocking_dual.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/user_guide/clients/echo_non_blocking_dual.c?rev=412001&r1=412000&r2=412001&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/user_guide/clients/echo_non_blocking_dual.c (original)
+++ webservices/axis2/trunk/c/samples/user_guide/clients/echo_non_blocking_dual.c Mon Jun  5 21:47:33 2006
@@ -36,11 +36,11 @@
 int main(int argc, char** argv)
 {
     const axis2_env_t *env = NULL;
-    axis2_char_t *address = NULL;
+    const axis2_char_t *address = NULL;
     axis2_endpoint_ref_t* endpoint_ref = NULL;
     axis2_endpoint_ref_t* reply_to = NULL;
     axis2_options_t *options = NULL;
-    axis2_char_t *client_home = NULL;
+    const axis2_char_t *client_home = NULL;
     axis2_svc_client_t* svc_client = NULL;
     axis2_om_node_t *payload = NULL;
     axis2_callback_t *callback = NULL;

Modified: webservices/axis2/trunk/c/samples/user_guide/clients/echo_rest.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/user_guide/clients/echo_rest.c?rev=412001&r1=412000&r2=412001&view=diff
==============================================================================
--- webservices/axis2/trunk/c/samples/user_guide/clients/echo_rest.c (original)
+++ webservices/axis2/trunk/c/samples/user_guide/clients/echo_rest.c Mon Jun  5 21:47:33 2006
@@ -22,10 +22,10 @@
 int main(int argc, char** argv)
 {
     const axis2_env_t *env = NULL;
-    axis2_char_t *address = NULL;
+    const axis2_char_t *address = NULL;
     axis2_endpoint_ref_t* endpoint_ref = NULL;
     axis2_options_t *options = NULL;
-    axis2_char_t *client_home = NULL;
+    const axis2_char_t *client_home = NULL;
     axis2_svc_client_t* svc_client = NULL;
     axis2_om_node_t *payload = NULL;
     axis2_om_node_t *ret_node = NULL;

Modified: webservices/axis2/trunk/c/util/include/axis2_array_list.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/include/axis2_array_list.h?rev=412001&r1=412000&r2=412001&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/include/axis2_array_list.h (original)
+++ webservices/axis2/trunk/c/util/include/axis2_array_list.h Mon Jun  5 21:47:33 2006
@@ -167,7 +167,7 @@
         add) (
                 struct axis2_array_list *array_list, 
                 const axis2_env_t *env, 
-                void* e);
+                const void* e);
         
        /**
         * Adds the supplied element at the specified index, shifting all
@@ -182,8 +182,8 @@
         add_at) (
                 struct axis2_array_list *array_list, 
                 const axis2_env_t *env, 
-                int index, 
-                void* e);
+                const int index, 
+                const void* e);
         
        /**
         * Removes the element at the user-supplied index.

Modified: webservices/axis2/trunk/c/util/src/array_list.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/array_list.c?rev=412001&r1=412000&r2=412001&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/src/array_list.c (original)
+++ webservices/axis2/trunk/c/util/src/array_list.c Mon Jun  5 21:47:33 2006
@@ -77,13 +77,13 @@
 axis2_status_t AXIS2_CALL 
 axis2_array_list_add(struct axis2_array_list *array_list, 
                      const axis2_env_t *env, 
-                     void* e);
+                     const void* e);
                      
 axis2_status_t AXIS2_CALL 
 axis2_array_list_add_at(struct axis2_array_list *array_list, 
                         const axis2_env_t *env, 
-                        int index, 
-                        void* e);    
+                        const int index, 
+                        const void* e);    
                         
 void* AXIS2_CALL 
 axis2_array_list_remove(struct axis2_array_list *array_list, 
@@ -265,7 +265,9 @@
     return result;
 }
 
-axis2_status_t AXIS2_CALL axis2_array_list_add(struct axis2_array_list *array_list, const axis2_env_t *env, void* e)
+axis2_status_t AXIS2_CALL axis2_array_list_add(struct axis2_array_list *array_list, 
+    const axis2_env_t *env, 
+    const void* e)
 {
     axis2_array_list_impl_t *array_list_impl = NULL;
     
@@ -280,7 +282,10 @@
     return AXIS2_SUCCESS;
 }
 
-axis2_status_t AXIS2_CALL axis2_array_list_add_at(struct axis2_array_list *array_list, const axis2_env_t *env, int index, void* e)
+axis2_status_t AXIS2_CALL axis2_array_list_add_at(struct axis2_array_list *array_list, 
+    const axis2_env_t *env, 
+    const int index, 
+    const void* e)
 {
     int i = 0;
     axis2_array_list_impl_t *array_list_impl = NULL;



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org