You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by na...@apache.org on 2007/03/07 06:57:27 UTC

svn commit: r515465 - in /webservices/axis2/trunk/c/modules/core/transport/http/sender: axis2_http_sender_util.h http_sender.c sender_util.c

Author: nandika
Date: Tue Mar  6 21:57:24 2007
New Revision: 515465

URL: http://svn.apache.org/viewvc?view=rev&rev=515465
Log:
warning fixed

Modified:
    webservices/axis2/trunk/c/modules/core/transport/http/sender/axis2_http_sender_util.h
    webservices/axis2/trunk/c/modules/core/transport/http/sender/http_sender.c
    webservices/axis2/trunk/c/modules/core/transport/http/sender/sender_util.c

Modified: webservices/axis2/trunk/c/modules/core/transport/http/sender/axis2_http_sender_util.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/sender/axis2_http_sender_util.h?view=diff&rev=515465&r1=515464&r2=515465
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/sender/axis2_http_sender_util.h (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/sender/axis2_http_sender_util.h Tue Mar  6 21:57:24 2007
@@ -43,7 +43,7 @@
 	const axis2_env_t *env,
 	axis2_http_simple_request_t *request,
 	axis2_char_t *header_name,
-	axis2_char_t *header_value);
+	const axis2_char_t *header_value);
 
 #ifdef __cplusplus
 }

Modified: webservices/axis2/trunk/c/modules/core/transport/http/sender/http_sender.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/sender/http_sender.c?view=diff&rev=515465&r1=515464&r2=515465
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/sender/http_sender.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/sender/http_sender.c Tue Mar  6 21:57:24 2007
@@ -440,15 +440,14 @@
 		if ('\"' != *soap_action)
         {
             axis2_char_t *tmp_soap_action = NULL;
-            tmp_soap_action = AXIS2_MALLOC(env->allocator, (
-											   AXIS2_STRLEN(soap_action) + 5) * sizeof(axis2_char_t));
+            tmp_soap_action = AXIS2_MALLOC(env->allocator, (AXIS2_STRLEN(soap_action) + 5) * sizeof(axis2_char_t));
             sprintf(tmp_soap_action, "\"%s\"", soap_action);
 			axis2_http_sender_util_add_header (env, request, AXIS2_HTTP_HEADER_SOAP_ACTION, tmp_soap_action);
             AXIS2_FREE(env->allocator, tmp_soap_action);
         }
         else
         {
-			axis2_http_sender_util_add_header (env, request, AXIS2_HTTP_HEADER_SOAP_ACTION, soap_action);
+			axis2_http_sender_util_add_header (env, request, AXIS2_HTTP_HEADER_SOAP_ACTION, (const)soap_action);
         }
     }
 
@@ -472,9 +471,8 @@
 		}
 		else
 		{
-			axis2_http_sender_util_add_header (env, request, 
-											   AXIS2_HTTP_HEADER_TRANSFER_ENCODING, 
-											   AXIS2_HTTP_HEADER_TRANSFER_ENCODING_CHUNKED);
+			axis2_http_sender_util_add_header (env, request, AXIS2_HTTP_HEADER_TRANSFER_ENCODING, 
+					AXIS2_HTTP_HEADER_TRANSFER_ENCODING_CHUNKED);
 		}
     
 		if (is_soap)

Modified: webservices/axis2/trunk/c/modules/core/transport/http/sender/sender_util.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/transport/http/sender/sender_util.c?view=diff&rev=515465&r1=515464&r2=515465
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/sender/sender_util.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/sender/sender_util.c Tue Mar  6 21:57:24 2007
@@ -14,19 +14,10 @@
 #include <axis2_generic_obj.h>
 
 void
-axis2_http_sender_util_add_header (
-	const axis2_env_t *env,
-	axis2_http_simple_request_t *request,
-	axis2_char_t *header_name,
-	axis2_char_t *header_value);
-
-
-
-void
 axis2_http_sender_util_add_header (const axis2_env_t *env,
-								   axis2_http_simple_request_t *request,
-								   axis2_char_t *header_name,
-								   axis2_char_t *header_value)
+				   axis2_http_simple_request_t *request,
+				   axis2_char_t *header_name,
+				   const axis2_char_t *header_value)
 {
 	axis2_http_header_t *http_header;
     http_header = axis2_http_header_create(env, header_name, header_value);



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