Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 51976 invoked from network); 19 Feb 2008 14:18:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Feb 2008 14:18:50 -0000 Received: (qmail 76585 invoked by uid 500); 19 Feb 2008 14:18:44 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 76458 invoked by uid 500); 19 Feb 2008 14:18:44 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 76445 invoked by uid 500); 19 Feb 2008 14:18:44 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 76442 invoked by uid 99); 19 Feb 2008 14:18:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2008 06:18:44 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Feb 2008 14:17:58 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id CEA561A9832; Tue, 19 Feb 2008 06:18:18 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r629104 - in /webservices/axis2/trunk/c/util/test/uri: build.sh uri_test.c Date: Tue, 19 Feb 2008 14:18:16 -0000 To: axis2-cvs@ws.apache.org From: senaka@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080219141818.CEA561A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: senaka Date: Tue Feb 19 06:17:54 2008 New Revision: 629104 URL: http://svn.apache.org/viewvc?rev=629104&view=rev Log: Fixing minor errors in uri test Modified: webservices/axis2/trunk/c/util/test/uri/build.sh webservices/axis2/trunk/c/util/test/uri/uri_test.c Modified: webservices/axis2/trunk/c/util/test/uri/build.sh URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/test/uri/build.sh?rev=629104&r1=629103&r2=629104&view=diff ============================================================================== --- webservices/axis2/trunk/c/util/test/uri/build.sh (original) +++ webservices/axis2/trunk/c/util/test/uri/build.sh Tue Feb 19 06:17:54 2008 @@ -1,3 +1,3 @@ #!/bin/bash -gcc uri_test.c ../util/create_env.c -g -Werror -I$AXIS2C_HOME/include/axis2-1.3.0 -L$AXIS2C_HOME/lib -laxutil -laxis2_axiom -laxis2_parser -o uri_test +gcc uri_test.c ../util/create_env.c -g -Werror -I$AXIS2C_HOME/include/axis2-1.3.0 -L$AXIS2C_HOME/lib -laxutil -laxis2_axiom -laxis2_parser -o uri_test -ldl -Wl,--rpath -Wl,$AXIS2C_HOME/lib 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=629104&r1=629103&r2=629104&view=diff ============================================================================== --- webservices/axis2/trunk/c/util/test/uri/uri_test.c (original) +++ webservices/axis2/trunk/c/util/test/uri/uri_test.c Tue Feb 19 06:17:54 2008 @@ -5,8 +5,7 @@ * */ axis2_status_t test_uri(axutil_env_t *env) { - unsigned flags; - axis2_char_t *uri_str = "http://user:pass@example.com:80/foo?bar#item5"; + axis2_char_t * uri_str = "http://user:pass@example.com:80/foo?bar#item5"; axis2_char_t * host = "home.netscape.com:443"; axis2_char_t * uri_str_base = "http://user:pass@example.com:80/foo?bar"; axis2_char_t * scheme_str = "http"; @@ -15,11 +14,10 @@ axutil_uri_t * uri = NULL; axutil_uri_t * clone = NULL; axutil_uri_t * rel = NULL; - axis2_char_t *protocol = NULL; - axis2_char_t *server = NULL; - axis2_char_t *path = NULL; + axis2_char_t * protocol = NULL; + axis2_char_t * server = NULL; + axis2_char_t * path = NULL; axis2_port_t scheme_port; - axis2_status_t status = AXIS2_FAILURE; axis2_port_t port; hostinfo = axutil_uri_parse_hostinfo(env,host); @@ -35,7 +33,7 @@ scheme_port = axutil_uri_port_of_scheme(scheme_str); if(scheme_port) { - printf("port of scheme is %d\n", (int)scheme_port); + printf("port of scheme is %u\n", scheme_port); } else { @@ -77,7 +75,7 @@ rel = axutil_uri_resolve_relative(env,base,clone); if(rel) { - printf("The resolve relative uri is %s\n",axutil_uri_to_string(rel,env,flags)); + printf("The resolved relative uri is %s\n",axutil_uri_to_string(rel,env,0)); } else { @@ -114,7 +112,7 @@ printf("The protocol is %s\n",protocol); printf("The server is %s \n",server); - printf("The port is %d \n",(unsigned short)port); + printf("The port is %u \n",port); printf("The path is %s\n",path); axutil_uri_free(uri,env); return AXIS2_SUCCESS; @@ -130,7 +128,7 @@ if(status == AXIS2_FAILURE) { - printf(" Test is failed"); + printf("The Test failed"); } axutil_env_free(env); --------------------------------------------------------------------- To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org For additional commands, e-mail: axis-cvs-help@ws.apache.org