axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r415534 - in /webservices/axis2/trunk/c/test/core/clientapi: test_client.c test_clientapi.c
Date Tue, 20 Jun 2006 07:13:42 GMT
Author: samisa
Date: Tue Jun 20 00:13:42 2006
New Revision: 415534

URL: http://svn.apache.org/viewvc?rev=415534&view=rev
Log:
Fixed warnings

Modified:
    webservices/axis2/trunk/c/test/core/clientapi/test_client.c
    webservices/axis2/trunk/c/test/core/clientapi/test_clientapi.c

Modified: webservices/axis2/trunk/c/test/core/clientapi/test_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/test/core/clientapi/test_client.c?rev=415534&r1=415533&r2=415534&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/clientapi/test_client.c (original)
+++ webservices/axis2/trunk/c/test/core/clientapi/test_client.c Tue Jun 20 00:13:42 2006
@@ -29,10 +29,11 @@
 #include <stdlib.h>
 
 /* Function prototypes */
-int write_to_socket(char *address, char* port, char* filename, char* endpoint);
+int write_to_socket(const char *address, const char* port, const char* filename, 
+    const char* endpoint);
 /* End of function prototypes */
 
-void error(char *msg)
+void error(const char *msg)
 {
     perror(msg);
     exit(0);
@@ -40,10 +41,10 @@
 
 int main(int argc, char *argv[])
 {
-    axis2_char_t *hostname = "localhost";
-    axis2_char_t *port = "9090";
-    axis2_char_t *filename = "echo.xml";
-    axis2_char_t *endpoint = "/axis2/services/echo/echo";
+    const axis2_char_t *hostname = "localhost";
+    const axis2_char_t *port = "9090";
+    const axis2_char_t *filename = "echo.xml";
+    const axis2_char_t *endpoint = "/axis2/services/echo/echo";
     int c;
     extern char *optarg;
    
@@ -70,7 +71,8 @@
     return 0;
 }
 
-int write_to_socket(char *address, char* port, char* filename, char* endpoint)
+int write_to_socket(const char *address, const char* port, const char* filename, 
+    const char* endpoint)
 {
    axis2_char_t buffer_l[4999];
     int sockfd, portno, n, i;

Modified: webservices/axis2/trunk/c/test/core/clientapi/test_clientapi.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/test/core/clientapi/test_clientapi.c?rev=415534&r1=415533&r2=415534&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/clientapi/test_clientapi.c (original)
+++ webservices/axis2/trunk/c/test/core/clientapi/test_clientapi.c Tue Jun 20 00:13:42 2006
@@ -24,23 +24,23 @@
 
 axiom_node_t *
 build_om_payload_for_echo_svc(const axis2_env_t *env,
-		              axis2_char_t* echo_str);
+		              const axis2_char_t* echo_str);
 
 void axis2_test_svc_client_blocking()
 {
    axis2_env_t* env = 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;
    axiom_node_t *payload = NULL;
    axiom_node_t *ret_node = NULL;
-   axis2_char_t *address = NULL;
+   const axis2_char_t *address = NULL;
    axis2_endpoint_ref_t* endpoint_ref = NULL;
 
    axis2_allocator_t *allocator = axis2_allocator_init (NULL);
    env = axis2_env_create (allocator);
    axiom_element_t *result_ele = NULL;
-   axis2_char_t* echo_text = "echo_text";
+   const axis2_char_t* echo_text = "echo_text";
    axis2_char_t* result = NULL;
     
    address = "http://localhost:9090/axis2/services/echo/echo";
@@ -76,7 +76,7 @@
 /* build SOAP request message content using OM */
 axiom_node_t *
 build_om_payload_for_echo_svc(const axis2_env_t *env,
-		              axis2_char_t* echo_text)
+		              const axis2_char_t* echo_text)
 {
     axiom_node_t *echo_om_node = NULL;
     axiom_element_t* echo_om_ele = NULL;



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


Mime
View raw message