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 na...@apache.org on 2006/03/17 07:48:26 UTC
svn commit: r386554 - in /webservices/axis2/trunk/c/test: core/addr/
core/clientapi/ core/context/ core/deployment/ core/description/
core/transport/http/ util/ xml/om/
Author: nandika
Date: Thu Mar 16 22:48:25 2006
New Revision: 386554
URL: http://svn.apache.org/viewcvs?rev=386554&view=rev
Log:
warnings removed
Modified:
webservices/axis2/trunk/c/test/core/addr/test_addr.c
webservices/axis2/trunk/c/test/core/clientapi/test_client.c
webservices/axis2/trunk/c/test/core/context/test_context.c
webservices/axis2/trunk/c/test/core/deployment/test_deployment.c
webservices/axis2/trunk/c/test/core/description/test_description.c
webservices/axis2/trunk/c/test/core/transport/http/test_http_transport.c
webservices/axis2/trunk/c/test/util/test_log.c
webservices/axis2/trunk/c/test/util/test_thread.c
webservices/axis2/trunk/c/test/util/test_thread.h
webservices/axis2/trunk/c/test/util/test_util.c
webservices/axis2/trunk/c/test/xml/om/test_om.c
Modified: webservices/axis2/trunk/c/test/core/addr/test_addr.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/addr/test_addr.c?rev=386554&r1=386553&r2=386554&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/addr/test_addr.c (original)
+++ webservices/axis2/trunk/c/test/core/addr/test_addr.c Thu Mar 16 22:48:25 2006
@@ -2,6 +2,7 @@
#include <axis2_env.h>
#include <axis2_allocator.h>
#include <axis2_endpoint_ref.h>
+#include <stdio.h>
int axis2_test_msg_info_headers()
{
Modified: webservices/axis2/trunk/c/test/core/clientapi/test_client.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/clientapi/test_client.c?rev=386554&r1=386553&r2=386554&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/clientapi/test_client.c (original)
+++ webservices/axis2/trunk/c/test/core/clientapi/test_client.c Thu Mar 16 22:48:25 2006
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <strings.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
@@ -9,6 +10,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <axis2.h>
+#include <stdlib.h>
/* Function prototypes */
int write_to_socket(char *address, char* port, char* filename, char* endpoint);
Modified: webservices/axis2/trunk/c/test/core/context/test_context.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/context/test_context.c?rev=386554&r1=386553&r2=386554&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/context/test_context.c (original)
+++ webservices/axis2/trunk/c/test/core/context/test_context.c Thu Mar 16 22:48:25 2006
@@ -3,6 +3,7 @@
#include <axis2.h>
#include <axis2_allocator.h>
#include <axis2_env.h>
+#include <stdio.h>
void axis2_test_conf_ctx_init()
{
Modified: webservices/axis2/trunk/c/test/core/deployment/test_deployment.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/deployment/test_deployment.c?rev=386554&r1=386553&r2=386554&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/deployment/test_deployment.c (original)
+++ webservices/axis2/trunk/c/test/core/deployment/test_deployment.c Thu Mar 16 22:48:25 2006
@@ -80,7 +80,6 @@
axis2_hash_index_t *hi2 = NULL;
void *op = NULL;
axis2_char_t *oname = NULL;
- int count = 0;
for(hi2 = axis2_hash_first(ops, &env); hi2; hi2 = axis2_hash_next(&env, hi2))
{
@@ -117,13 +116,13 @@
return 0;
}
-axis2_test_transport_receiver_load()
+int axis2_test_transport_receiver_load()
{
axis2_dll_desc_t *dll_desc = NULL;
axis2_char_t *dll_name = NULL;
axis2_transport_receiver_t *transport_recv = NULL;
axis2_param_t *impl_info_param = NULL;
- axis2_bool_t *is_running = AXIS2_FALSE;
+ axis2_bool_t is_running = AXIS2_FALSE;
axis2_char_t *axis2c_home = NULL;
printf("******************************************\n");
@@ -152,7 +151,7 @@
return 0;
}
-axis2_test_transport_sender_load()
+int axis2_test_transport_sender_load()
{
axis2_dll_desc_t *dll_desc = NULL;
axis2_char_t *dll_name = NULL;
Modified: webservices/axis2/trunk/c/test/core/description/test_description.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/description/test_description.c?rev=386554&r1=386553&r2=386554&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/description/test_description.c (original)
+++ webservices/axis2/trunk/c/test/core/description/test_description.c Thu Mar 16 22:48:25 2006
@@ -114,7 +114,7 @@
struct axis2_qname *qname = NULL;
struct axis2_hash_t *ops = NULL;
struct axis2_op *op = NULL;
- axis2_status_t status = NULL;
+ axis2_status_t status = AXIS2_SUCCESS;
printf("******************************************\n");
Modified: webservices/axis2/trunk/c/test/core/transport/http/test_http_transport.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/core/transport/http/test_http_transport.c?rev=386554&r1=386553&r2=386554&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/core/transport/http/test_http_transport.c (original)
+++ webservices/axis2/trunk/c/test/core/transport/http/test_http_transport.c Thu Mar 16 22:48:25 2006
@@ -175,6 +175,6 @@
axis2_allocator_t *allocator = env->allocator;
axis2_env_free(env);
- free(allocator);
+ axis2_allocator_free(allocator);
return 0;
}
Modified: webservices/axis2/trunk/c/test/util/test_log.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/util/test_log.c?rev=386554&r1=386553&r2=386554&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/util/test_log.c (original)
+++ webservices/axis2/trunk/c/test/util/test_log.c Thu Mar 16 22:48:25 2006
@@ -1,9 +1,10 @@
#include <stdio.h>
#include <axis2_error_default.h>
#include <axis2_log.h>
+#include <axis2_log_default.h>
#include <axis2_allocator.h>
-#include "test_log.h"
-
+#include <test_log.h>
+#include <string.h>
axis2_env_t *create_env_with_error_log()
{
axis2_allocator_t *allocator = axis2_allocator_init(NULL);
Modified: webservices/axis2/trunk/c/test/util/test_thread.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/util/test_thread.c?rev=386554&r1=386553&r2=386554&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/util/test_thread.c (original)
+++ webservices/axis2/trunk/c/test/util/test_thread.c Thu Mar 16 22:48:25 2006
@@ -16,13 +16,14 @@
#include <stdio.h>
+#include <string.h>
#include <axis2_error_default.h>
#include <axis2_log.h>
#include <axis2_log_default.h>
#include <axis2_allocator.h>
#include <axis2.h>
#include "test_thread.h"
-
+#include <unistd.h>
static axis2_thread_mutex_t *thread_lock = NULL;
static axis2_thread_once_t *control = NULL;
@@ -36,16 +37,14 @@
static axis2_thread_t *t3 = NULL;
static axis2_thread_t *t4 = NULL;
-static void init_func(void)
+void init_func(void)
{
value++;
}
-static void thread_init(axis2_env_t *env)
+void thread_init(axis2_env_t *env)
{
axis2_allocator_t *allocator = NULL;
- axis2_status_t rv;
-
allocator = env->allocator;
@@ -219,14 +218,14 @@
printf("success - test_axis2_thread_detach2\n");
}
-static void check_locks()
+void check_locks()
{
if (2 == x) printf ("success - check_locks \n");
else printf ("failure - check_locks \n");
}
-static void check_thread_once()
+void check_thread_once()
{
if (1 == value) printf ("success - check_thread_once \n");
else printf ("failure - check_thread_once \n");
Modified: webservices/axis2/trunk/c/test/util/test_thread.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/util/test_thread.h?rev=386554&r1=386553&r2=386554&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/util/test_thread.h (original)
+++ webservices/axis2/trunk/c/test/util/test_thread.h Thu Mar 16 22:48:25 2006
@@ -5,14 +5,14 @@
#include <axis2_thread.h>
-static void init_func(void);
-static void thread_init(axis2_env_t *env);
+void init_func(void);
+void thread_init(axis2_env_t *env);
void * AXIS2_CALL test_function(axis2_thread_t *td,void *param);
void test_axis2_thread_create(axis2_env_t *env);
void * AXIS2_CALL test_function2(axis2_thread_t *td,void *param);
void test_axis2_thread_detach(axis2_env_t *env);
void test_axis2_thread_detach2(axis2_env_t *env);
-static void check_locks();
+void check_locks();
/*call this method from main*/
void run_test_thread(axis2_env_t *env);
Modified: webservices/axis2/trunk/c/test/util/test_util.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/util/test_util.c?rev=386554&r1=386553&r2=386554&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/util/test_util.c (original)
+++ webservices/axis2/trunk/c/test/util/test_util.c Thu Mar 16 22:48:25 2006
@@ -19,7 +19,6 @@
#include <axis2_string.h>
#include <axis2_file_diff.h>
#include <axis2_error_default.h>
-/*#include <axis2_stream_default.h>*/
#include <axis2_array_list.h>
#include <axis2_platform_auto_sense.h>
#include <axis2_uuid_gen.h>
@@ -29,6 +28,7 @@
#include <axis2_file.h>
#include "axis2_log.h"
#include "test_thread.h"
+#include <test_log.h>
typedef struct a
{
Modified: webservices/axis2/trunk/c/test/xml/om/test_om.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/xml/om/test_om.c?rev=386554&r1=386553&r2=386554&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/xml/om/test_om.c (original)
+++ webservices/axis2/trunk/c/test/xml/om/test_om.c Thu Mar 16 22:48:25 2006
@@ -272,8 +272,8 @@
error = axis2_error_create(allocator);
environment = axis2_env_create_with_error_log(allocator, error, axis_log);
- test_om_build (file_name);
- /* test_om_serialize(); */
+/* test_om_build (file_name); */
+ test_om_serialize();
axis2_env_free(environment);
axis2_allocator_free(allocator);