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/05 04:38:52 UTC
svn commit: r411642 - in /webservices/axis2/trunk/c: include/
modules/core/context/ modules/core/description/ modules/wsdl/
modules/wsdl/builder/
Author: samisa
Date: Sun Jun 4 19:38:51 2006
New Revision: 411642
URL: http://svn.apache.org/viewvc?rev=411642&view=rev
Log:
Fixed -Wwrite-strings related warnings
Modified:
webservices/axis2/trunk/c/include/axis2_ctx.h
webservices/axis2/trunk/c/include/axis2_msg_ctx.h
webservices/axis2/trunk/c/include/axis2_wsdl11_mep_finder.h
webservices/axis2/trunk/c/include/axis2_wsdl_binding_msg_ref.h
webservices/axis2/trunk/c/include/axis2_wsdl_component.h
webservices/axis2/trunk/c/include/axis2_wsdl_op.h
webservices/axis2/trunk/c/modules/core/context/ctx.c
webservices/axis2/trunk/c/modules/core/context/msg_ctx.c
webservices/axis2/trunk/c/modules/core/description/msg.c
webservices/axis2/trunk/c/modules/wsdl/builder/wsdl11_mep_finder.c
webservices/axis2/trunk/c/modules/wsdl/builder/wsdl_pump.c
webservices/axis2/trunk/c/modules/wsdl/wsdl_binding_msg_ref.c
webservices/axis2/trunk/c/modules/wsdl/wsdl_component.c
webservices/axis2/trunk/c/modules/wsdl/wsdl_op.c
Modified: webservices/axis2/trunk/c/include/axis2_ctx.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_ctx.h?rev=411642&r1=411641&r2=411642&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_ctx.h (original)
+++ webservices/axis2/trunk/c/include/axis2_ctx.h Sun Jun 4 19:38:51 2006
@@ -67,11 +67,12 @@
* @param persistent
* @return
*/
- axis2_property_t* (AXIS2_CALL *
- get_property)(struct axis2_ctx *ctx,
- const axis2_env_t *env,
- axis2_char_t *key,
- axis2_bool_t persistent);
+ axis2_property_t *(AXIS2_CALL *
+ get_property)(
+ struct axis2_ctx *ctx,
+ const axis2_env_t *env,
+ const axis2_char_t *key,
+ const axis2_bool_t persistent);
axis2_hash_t* (AXIS2_CALL *get_non_persistent_map)(struct axis2_ctx *ctx,
const axis2_env_t *env);
Modified: webservices/axis2/trunk/c/include/axis2_msg_ctx.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_msg_ctx.h?rev=411642&r1=411641&r2=411642&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_msg_ctx.h (original)
+++ webservices/axis2/trunk/c/include/axis2_msg_ctx.h Sun Jun 4 19:38:51 2006
@@ -504,11 +504,12 @@
* @param persistent : need to be persistent even when server re-start
* @return Object
*/
- axis2_property_t* (AXIS2_CALL *
- get_property)(struct axis2_msg_ctx *msg_ctx,
- const axis2_env_t *env,
- axis2_char_t *key,
- axis2_bool_t persistent);
+ axis2_property_t *(AXIS2_CALL *
+ get_property)(
+ struct axis2_msg_ctx *msg_ctx,
+ const axis2_env_t *env,
+ const axis2_char_t *key,
+ const axis2_bool_t persistent);
axis2_status_t (AXIS2_CALL *
set_property)(struct axis2_msg_ctx *msg_ctx,
Modified: webservices/axis2/trunk/c/include/axis2_wsdl11_mep_finder.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_wsdl11_mep_finder.h?rev=411642&r1=411641&r2=411642&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_wsdl11_mep_finder.h (original)
+++ webservices/axis2/trunk/c/include/axis2_wsdl11_mep_finder.h Sun Jun 4 19:38:51 2006
@@ -37,7 +37,7 @@
* @ingroup axis2_wsdl
* @{
*/
-axis2_char_t *AXIS2_CALL
+const axis2_char_t *AXIS2_CALL
axis2_wsdl11_mep_finder_get_mep(void *op,
const axis2_env_t *env);
Modified: webservices/axis2/trunk/c/include/axis2_wsdl_binding_msg_ref.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_wsdl_binding_msg_ref.h?rev=411642&r1=411641&r2=411642&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_wsdl_binding_msg_ref.h (original)
+++ webservices/axis2/trunk/c/include/axis2_wsdl_binding_msg_ref.h Sun Jun 4 19:38:51 2006
@@ -74,7 +74,7 @@
axis2_status_t (AXIS2_CALL *
set_direction) (axis2_wsdl_binding_msg_ref_t *binding_msg_ref,
const axis2_env_t *env,
- axis2_char_t *direction);
+ const axis2_char_t *direction);
/**
* Method getMessageLabel
@@ -93,7 +93,7 @@
axis2_status_t (AXIS2_CALL *
set_msg_label) (axis2_wsdl_binding_msg_ref_t *binding_msg_ref,
const axis2_env_t *env,
- axis2_char_t *msg_label);
+ const axis2_char_t *msg_label);
};
/**
Modified: webservices/axis2/trunk/c/include/axis2_wsdl_component.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_wsdl_component.h?rev=411642&r1=411641&r2=411642&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_wsdl_component.h (original)
+++ webservices/axis2/trunk/c/include/axis2_wsdl_component.h Sun Jun 4 19:38:51 2006
@@ -74,7 +74,7 @@
axis2_status_t (AXIS2_CALL *
set_component_property) (axis2_wsdl_component_t *wsdl_component,
const axis2_env_t *env,
- axis2_char_t *key,
+ const axis2_char_t *key,
void *value);
@@ -86,7 +86,7 @@
void *(AXIS2_CALL *
get_component_property) (axis2_wsdl_component_t *wsdl_component,
const axis2_env_t *env,
- axis2_char_t *key);
+ const axis2_char_t *key);
Modified: webservices/axis2/trunk/c/include/axis2_wsdl_op.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_wsdl_op.h?rev=411642&r1=411641&r2=411642&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_wsdl_op.h (original)
+++ webservices/axis2/trunk/c/include/axis2_wsdl_op.h Sun Jun 4 19:38:51 2006
@@ -79,7 +79,7 @@
axis2_status_t (AXIS2_CALL *
set_msg_exchange_pattern) (axis2_wsdl_op_t *wsdl_op,
const axis2_env_t *env,
- axis2_char_t *msg_exchange_pattern);
+ const axis2_char_t *msg_exchange_pattern);
/**
* get the message exchange pattern
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=411642&r1=411641&r2=411642&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/ctx.c (original)
+++ webservices/axis2/trunk/c/modules/core/context/ctx.c Sun Jun 4 19:38:51 2006
@@ -36,8 +36,8 @@
axis2_property_t* AXIS2_CALL
axis2_ctx_get_property(struct axis2_ctx *ctx,
const axis2_env_t *env,
- axis2_char_t *key,
- axis2_bool_t persistent);
+ const axis2_char_t *key,
+ const axis2_bool_t persistent);
axis2_status_t AXIS2_CALL
axis2_ctx_set_property(struct axis2_ctx *ctx,
@@ -155,8 +155,8 @@
axis2_property_t* AXIS2_CALL
axis2_ctx_get_property(struct axis2_ctx *ctx,
const axis2_env_t *env,
- axis2_char_t *key,
- axis2_bool_t persistent)
+ const axis2_char_t *key,
+ const axis2_bool_t persistent)
{
axis2_ctx_impl_t *ctx_impl = NULL;
axis2_property_t *ret = NULL;
Modified: webservices/axis2/trunk/c/modules/core/context/msg_ctx.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/context/msg_ctx.c?rev=411642&r1=411641&r2=411642&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/context/msg_ctx.c (original)
+++ webservices/axis2/trunk/c/modules/core/context/msg_ctx.c Sun Jun 4 19:38:51 2006
@@ -316,7 +316,8 @@
axis2_property_t* AXIS2_CALL
axis2_msg_ctx_get_property(struct axis2_msg_ctx *msg_ctx,
const axis2_env_t *env,
- axis2_char_t *key, axis2_bool_t persistent);
+ const axis2_char_t *key,
+ const axis2_bool_t persistent);
axis2_status_t AXIS2_CALL
axis2_msg_ctx_set_property(struct axis2_msg_ctx *msg_ctx,
const axis2_env_t *env,
@@ -1579,7 +1580,8 @@
axis2_property_t* AXIS2_CALL
axis2_msg_ctx_get_property(struct axis2_msg_ctx *msg_ctx,
const axis2_env_t *env,
- axis2_char_t *key, axis2_bool_t persistent)
+ const axis2_char_t *key,
+ const axis2_bool_t persistent)
{
axis2_msg_ctx_impl_t *msg_ctx_impl = NULL;
void *obj = NULL;
Modified: webservices/axis2/trunk/c/modules/core/description/msg.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/description/msg.c?rev=411642&r1=411641&r2=411642&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/description/msg.c (original)
+++ webservices/axis2/trunk/c/modules/core/description/msg.c Sun Jun 4 19:38:51 2006
@@ -519,7 +519,7 @@
if (name)
{
- msg_impl->name = AXIS2_STRDUP(env, name);
+ msg_impl->name = AXIS2_STRDUP(name, env);
if (!(msg_impl->name))
{
return AXIS2_FAILURE;
Modified: webservices/axis2/trunk/c/modules/wsdl/builder/wsdl11_mep_finder.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/wsdl/builder/wsdl11_mep_finder.c?rev=411642&r1=411641&r2=411642&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/builder/wsdl11_mep_finder.c (original)
+++ webservices/axis2/trunk/c/modules/wsdl/builder/wsdl11_mep_finder.c Sun Jun 4 19:38:51 2006
@@ -17,7 +17,7 @@
#include <axis2_wsdl4c_operation.h>
#include <axis2_wsdl.h>
-axis2_char_t *AXIS2_CALL
+const axis2_char_t *AXIS2_CALL
axis2_wsdl11_mep_finder_get_mep(void *op,
const axis2_env_t *env)
{
Modified: webservices/axis2/trunk/c/modules/wsdl/builder/wsdl_pump.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/wsdl/builder/wsdl_pump.c?rev=411642&r1=411641&r2=411642&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/builder/wsdl_pump.c (original)
+++ webservices/axis2/trunk/c/modules/wsdl/builder/wsdl_pump.c Sun Jun 4 19:38:51 2006
@@ -974,7 +974,7 @@
axis2_char_t *qname_prefix = NULL;
axis2_char_t *temp = NULL;
int i = 0, size = 0;
- axis2_char_t *mep = NULL;
+ const axis2_char_t *mep = NULL;
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
AXIS2_PARAM_CHECK(env->error, namespc_of_op, AXIS2_FAILURE);
Modified: webservices/axis2/trunk/c/modules/wsdl/wsdl_binding_msg_ref.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/wsdl/wsdl_binding_msg_ref.c?rev=411642&r1=411641&r2=411642&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/wsdl_binding_msg_ref.c (original)
+++ webservices/axis2/trunk/c/modules/wsdl/wsdl_binding_msg_ref.c Sun Jun 4 19:38:51 2006
@@ -54,7 +54,7 @@
axis2_status_t AXIS2_CALL
axis2_wsdl_binding_msg_ref_set_direction(axis2_wsdl_binding_msg_ref_t *binding_msg_ref,
const axis2_env_t *env,
- axis2_char_t *direction);
+ const axis2_char_t *direction);
axis2_char_t * AXIS2_CALL
axis2_wsdl_binding_msg_ref_get_msg_label(axis2_wsdl_binding_msg_ref_t *binding_msg_ref,
@@ -63,7 +63,7 @@
axis2_status_t AXIS2_CALL
axis2_wsdl_binding_msg_ref_set_msg_label(axis2_wsdl_binding_msg_ref_t *binding_msg_ref,
const axis2_env_t *env,
- axis2_char_t *msg_label);
+ const axis2_char_t *msg_label);
/************************** End of function prototypes ************************/
@@ -178,7 +178,7 @@
axis2_status_t AXIS2_CALL
axis2_wsdl_binding_msg_ref_set_direction(axis2_wsdl_binding_msg_ref_t *binding_msg_ref,
const axis2_env_t *env,
- axis2_char_t *direction)
+ const axis2_char_t *direction)
{
axis2_wsdl_binding_msg_ref_impl_t *binding_msg_ref_impl = NULL;
@@ -192,7 +192,7 @@
AXIS2_FREE(env->allocator, binding_msg_ref_impl->direction);
binding_msg_ref_impl->direction = NULL;
}
- binding_msg_ref_impl->direction = direction;
+ binding_msg_ref_impl->direction = (axis2_char_t *)direction;
return AXIS2_SUCCESS;
}
@@ -207,7 +207,7 @@
axis2_status_t AXIS2_CALL
axis2_wsdl_binding_msg_ref_set_msg_label(axis2_wsdl_binding_msg_ref_t *binding_msg_ref,
const axis2_env_t *env,
- axis2_char_t *msg_label)
+ const axis2_char_t *msg_label)
{
axis2_wsdl_binding_msg_ref_impl_t *binding_msg_ref_impl = NULL;
@@ -221,6 +221,6 @@
AXIS2_FREE(env->allocator, binding_msg_ref_impl->msg_label);
binding_msg_ref_impl->direction = NULL;
}
- AXIS2_INTF_TO_IMPL(binding_msg_ref)->msg_label = msg_label;
+ AXIS2_INTF_TO_IMPL(binding_msg_ref)->msg_label = (axis2_char_t *)msg_label;
return AXIS2_SUCCESS;
}
Modified: webservices/axis2/trunk/c/modules/wsdl/wsdl_component.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/wsdl/wsdl_component.c?rev=411642&r1=411641&r2=411642&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/wsdl_component.c (original)
+++ webservices/axis2/trunk/c/modules/wsdl/wsdl_component.c Sun Jun 4 19:38:51 2006
@@ -46,14 +46,14 @@
axis2_wsdl_component_set_component_property(
axis2_wsdl_component_t *wsdl_component,
const axis2_env_t *env,
- axis2_char_t *key,
+ const axis2_char_t *key,
void *value);
void * AXIS2_CALL
axis2_wsdl_component_get_component_property(
axis2_wsdl_component_t *wsdl_component,
const axis2_env_t *env,
- axis2_char_t *key);
+ const axis2_char_t *key);
@@ -236,7 +236,7 @@
axis2_wsdl_component_set_component_property(
axis2_wsdl_component_t *wsdl_component,
const axis2_env_t *env,
- axis2_char_t *key,
+ const axis2_char_t *key,
void *value)
{
axis2_wsdl_component_impl_t *component_impl = NULL;
@@ -256,7 +256,7 @@
axis2_wsdl_component_get_component_property(
axis2_wsdl_component_t *wsdl_component,
const axis2_env_t *env,
- axis2_char_t *key)
+ const axis2_char_t *key)
{
AXIS2_ENV_CHECK(env, NULL);
AXIS2_PARAM_CHECK(env->error, key, NULL);
Modified: webservices/axis2/trunk/c/modules/wsdl/wsdl_op.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/wsdl/wsdl_op.c?rev=411642&r1=411641&r2=411642&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/wsdl/wsdl_op.c (original)
+++ webservices/axis2/trunk/c/modules/wsdl/wsdl_op.c Sun Jun 4 19:38:51 2006
@@ -73,7 +73,7 @@
axis2_status_t AXIS2_CALL
axis2_wsdl_op_set_msg_exchange_pattern (axis2_wsdl_op_t *wsdl_op,
const axis2_env_t *env,
- axis2_char_t *msg_exchange_pattern);
+ const axis2_char_t *msg_exchange_pattern);
axis2_char_t * AXIS2_CALL
axis2_wsdl_op_get_msg_exchange_pattern (axis2_wsdl_op_t *wsdl_op,
@@ -360,7 +360,7 @@
axis2_status_t AXIS2_CALL
axis2_wsdl_op_set_msg_exchange_pattern (axis2_wsdl_op_t *wsdl_op,
const axis2_env_t *env,
- axis2_char_t *msg_exchange_pattern)
+ const axis2_char_t *msg_exchange_pattern)
{
axis2_wsdl_op_impl_t *wsdl_op_impl = NULL;
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org