Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 15146 invoked from network); 9 Feb 2006 09:06:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Feb 2006 09:06:20 -0000 Received: (qmail 80796 invoked by uid 500); 9 Feb 2006 09:06:14 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 80744 invoked by uid 500); 9 Feb 2006 09:06:14 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 80733 invoked by uid 500); 9 Feb 2006 09:06:13 -0000 Delivered-To: apmail-jakarta-tomcat-dev@jakarta.apache.org Received: (qmail 80730 invoked by uid 99); 9 Feb 2006 09:06:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2006 01:06:13 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 09 Feb 2006 01:06:13 -0800 Received: (qmail 15009 invoked by uid 65534); 9 Feb 2006 09:05:52 -0000 Message-ID: <20060209090552.14989.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r376231 - /tomcat/connectors/trunk/jni/native/src/network.c Date: Thu, 09 Feb 2006 09:05:52 -0000 To: tomcat-dev@jakarta.apache.org From: mturk@apache.org X-Mailer: svnmailer-1.0.6 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: mturk Date: Thu Feb 9 01:05:50 2006 New Revision: 376231 URL: http://svn.apache.org/viewcvs?rev=376231&view=rev Log: Fix compile time warnings, as well as case where the send length is 0 (should never happen) Modified: tomcat/connectors/trunk/jni/native/src/network.c Modified: tomcat/connectors/trunk/jni/native/src/network.c URL: http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jni/native/src/network.c?rev=376231&r1=376230&r2=376231&view=diff ============================================================================== --- tomcat/connectors/trunk/jni/native/src/network.c (original) +++ tomcat/connectors/trunk/jni/native/src/network.c Thu Feb 9 01:05:50 2006 @@ -564,7 +564,7 @@ apr_size_t nbytes = (apr_size_t)len; apr_size_t sent = 0; char *bytes; - apr_status_t ss; + apr_status_t ss = APR_SUCCESS; UNREFERENCED(o); TCN_ASSERT(sock != 0); @@ -601,7 +601,7 @@ tcn_socket_t *s = J2P(sock, tcn_socket_t *); apr_size_t nbytes = (apr_size_t)len; apr_size_t sent = 0; - apr_status_t ss; + apr_status_t ss = APR_SUCCESS; UNREFERENCED_STDARGS; TCN_ASSERT(sock != 0); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org