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 di...@apache.org on 2008/02/01 05:44:36 UTC
svn commit: r617347 - in /webservices/axis2/trunk/c/util/test: allocator/
date_time/ duration/ link_list/ properties/ rand/ stack/ string_util/ uri/
url/ utils/
Author: dinesh
Date: Thu Jan 31 20:44:35 2008
New Revision: 617347
URL: http://svn.apache.org/viewvc?rev=617347&view=rev
Log:
fixed warning , axis2c-951 thanks Manoj
Modified:
webservices/axis2/trunk/c/util/test/allocator/allocator_test.c
webservices/axis2/trunk/c/util/test/date_time/date_time_test.c
webservices/axis2/trunk/c/util/test/duration/duration_test.c
webservices/axis2/trunk/c/util/test/link_list/link_list_test.c
webservices/axis2/trunk/c/util/test/properties/property_test.c
webservices/axis2/trunk/c/util/test/rand/rand_test.c
webservices/axis2/trunk/c/util/test/stack/stack_test.c
webservices/axis2/trunk/c/util/test/string_util/string_util_test.c
webservices/axis2/trunk/c/util/test/uri/uri_test.c
webservices/axis2/trunk/c/util/test/url/url_test.c
webservices/axis2/trunk/c/util/test/utils/utils_test.c
Modified: webservices/axis2/trunk/c/util/test/allocator/allocator_test.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/test/allocator/allocator_test.c?rev=617347&r1=617346&r2=617347&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/test/allocator/allocator_test.c (original)
+++ webservices/axis2/trunk/c/util/test/allocator/allocator_test.c Thu Jan 31 20:44:35 2008
@@ -5,9 +5,9 @@
#include "../util/create_env.h"
FILE *f = NULL;
-char *plain_binary ;
+unsigned char *plain_binary ;
const char *encoded_binary;
-char buffer[1024];
+unsigned char buffer[1024];
int plain_binary_len;
axutil_base64_binary_t *base64_binary;
@@ -17,7 +17,7 @@
/** @brief read binary
* read the binary file
*/
-read_binary()
+int read_binary()
{
FILE *in = fopen("test","rb");
FILE *out = fopen("test.doc","w");
@@ -36,7 +36,7 @@
/** @brief test base64
* create duration from values and retrieve values
*/
-test_base64()
+axis2_status_t test_base64()
{
env = create_environment();
read_binary();
@@ -62,7 +62,6 @@
int status = AXIS2_SUCCESS;
axutil_env_t *env = NULL;
- axutil_allocator_t *allocator = NULL;
env = create_environment();
status = test_base64();
Modified: webservices/axis2/trunk/c/util/test/date_time/date_time_test.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/test/date_time/date_time_test.c?rev=617347&r1=617346&r2=617347&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/test/date_time/date_time_test.c (original)
+++ webservices/axis2/trunk/c/util/test/date_time/date_time_test.c Thu Jan 31 20:44:35 2008
@@ -17,7 +17,7 @@
* deserialize and serialize the time
*/
-test_date_time()
+axis2_status_t test_date_time()
{
env = create_environment();
axutil_date_time_create_with_offset(env,100);
@@ -60,7 +60,6 @@
int main()
{
int status = AXIS2_SUCCESS;
- axutil_allocator_t *allocator = NULL;
env = create_environment();
status = test_date_time();
if(status == AXIS2_FAILURE)
Modified: webservices/axis2/trunk/c/util/test/duration/duration_test.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/test/duration/duration_test.c?rev=617347&r1=617346&r2=617347&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/test/duration/duration_test.c (original)
+++ webservices/axis2/trunk/c/util/test/duration/duration_test.c Thu Jan 31 20:44:35 2008
@@ -12,7 +12,7 @@
/** @brief test duration
* create duration from values and retrieve values
*/
-test_duration()
+axis2_status_t test_duration()
{
env = create_environment();
axutil_duration_create(env);
@@ -37,7 +37,7 @@
/** @brief set values
* set values for the duration and get the values
*/
-set_values()
+axis2_status_t set_values()
{
axutil_duration_set_years(duration,env,2005);
get_year = axutil_duration_get_years(duration,env);
@@ -51,7 +51,7 @@
get_minute = axutil_duration_get_mins(duration,env);
axutil_duration_set_seconds(duration,env,49);
get_second = axutil_duration_get_seconds(duration,env);
- printf("The time is now %d:%d:%d-%d-%d-%f\n ",get_year,get_month,get_day,get_hour,get_minute,get_second);
+ printf("The time is now %d:%d:%d-%d-%d-%d\n ",get_year,get_month,get_day,get_hour,get_minute,get_second);
compere = axutil_duration_compare(duration_one,duration,env);
printf("The test is success\n");
return AXIS2_SUCCESS;
@@ -61,7 +61,6 @@
int status = AXIS2_SUCCESS;
axutil_env_t *env = NULL;
- axutil_allocator_t *allocator = NULL;
env = create_environment();
status = test_duration();
Modified: webservices/axis2/trunk/c/util/test/link_list/link_list_test.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/test/link_list/link_list_test.c?rev=617347&r1=617346&r2=617347&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/test/link_list/link_list_test.c (original)
+++ webservices/axis2/trunk/c/util/test/link_list/link_list_test.c Thu Jan 31 20:44:35 2008
@@ -5,7 +5,7 @@
axutil_linked_list_t * linked_list = NULL;
entry_t *entry = NULL;
-test_link_list(axutil_env_t *env,char * first_item,char * second_item,char * third_item,char *last_item,char *array)
+axis2_status_t test_link_list(axutil_env_t *env,char * first_item,char * second_item,char * third_item,char *last_item,char *array)
{
linked_list = axutil_linked_list_create(env);
if(linked_list)
@@ -51,11 +51,6 @@
int main()
{
int status = AXIS2_SUCCESS;
- char * first_item;
- char * second_item;
- char * third_item;
- char * last_item;
- char * array;
env = create_environment();
status = test_link_list(env,"first entry","secnd entry","third entry","last entry" ,"test");
if(status == AXIS2_FAILURE)
Modified: webservices/axis2/trunk/c/util/test/properties/property_test.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/test/properties/property_test.c?rev=617347&r1=617346&r2=617347&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/test/properties/property_test.c (original)
+++ webservices/axis2/trunk/c/util/test/properties/property_test.c Thu Jan 31 20:44:35 2008
@@ -16,7 +16,7 @@
/** @brief test properties
* read file and give the output
*/
-test_properties()
+axis2_status_t test_properties()
{
FILE *input = fopen("input.doc","rb");
FILE *output = fopen("output.doc","rb");
Modified: webservices/axis2/trunk/c/util/test/rand/rand_test.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/test/rand/rand_test.c?rev=617347&r1=617346&r2=617347&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/test/rand/rand_test.c (original)
+++ webservices/axis2/trunk/c/util/test/rand/rand_test.c Thu Jan 31 20:44:35 2008
@@ -8,7 +8,7 @@
* create random variable and get it's value
*/
-test_rand(axutil_env_t *env)
+axis2_status_t test_rand(axutil_env_t *env)
{
rand_number = axutil_rand(seedp);
rand_range = axutil_rand_with_range(seedp,start,end);
Modified: webservices/axis2/trunk/c/util/test/stack/stack_test.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/test/stack/stack_test.c?rev=617347&r1=617346&r2=617347&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/test/stack/stack_test.c (original)
+++ webservices/axis2/trunk/c/util/test/stack/stack_test.c Thu Jan 31 20:44:35 2008
@@ -1,7 +1,7 @@
#include "../util/create_env.h"
#include <axutil_stack.h>
-test_stack(axutil_env_t * env, char * value)
+axis2_status_t test_stack(axutil_env_t * env, char * value)
{
axutil_stack_t * stack = NULL;
stack = axutil_stack_create(env);
Modified: webservices/axis2/trunk/c/util/test/string_util/string_util_test.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/test/string_util/string_util_test.c?rev=617347&r1=617346&r2=617347&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/test/string_util/string_util_test.c (original)
+++ webservices/axis2/trunk/c/util/test/string_util/string_util_test.c Thu Jan 31 20:44:35 2008
@@ -10,7 +10,7 @@
* tokenize a string
*/
-test_string()
+axis2_status_t test_string()
{
env = create_environment();
axutil_array_list_t * tokenize = (axutil_array_list_t *)axutil_tokenize(env, in, delim);
Modified: webservices/axis2/trunk/c/util/test/uri/uri_test.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/test/uri/uri_test.c?rev=617347&r1=617346&r2=617347&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/test/uri/uri_test.c (original)
+++ webservices/axis2/trunk/c/util/test/uri/uri_test.c Thu Jan 31 20:44:35 2008
@@ -18,7 +18,7 @@
* create URI and get the values of it's components
*/
-test_uri()
+axis2_status_t test_uri()
{
env = create_environment();
uri = (axutil_uri_t *)axutil_uri_create(env);
Modified: webservices/axis2/trunk/c/util/test/url/url_test.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/test/url/url_test.c?rev=617347&r1=617346&r2=617347&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/test/url/url_test.c (original)
+++ webservices/axis2/trunk/c/util/test/url/url_test.c Thu Jan 31 20:44:35 2008
@@ -17,7 +17,7 @@
* create URL and get the values of it's components
*/
-test_uri()
+axis2_status_t test_uri()
{
env = create_environment();
url = (axutil_url_t *)axutil_url_create(env,"http","www.google.com",8090,"/foo/");
Modified: webservices/axis2/trunk/c/util/test/utils/utils_test.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/test/utils/utils_test.c?rev=617347&r1=617346&r2=617347&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/test/utils/utils_test.c (original)
+++ webservices/axis2/trunk/c/util/test/utils/utils_test.c Thu Jan 31 20:44:35 2008
@@ -9,7 +9,7 @@
* test quote string
*/
-test_utils()
+axis2_status_t test_utils()
{
env = create_environment();
axis2_char_t **op = (axis2_char_t **)axutil_parse_request_url_for_svc_and_op(env,request);
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org