Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 94667 invoked from network); 20 Mar 2010 22:30:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Mar 2010 22:30:56 -0000 Received: (qmail 5095 invoked by uid 500); 20 Mar 2010 22:30:56 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 5053 invoked by uid 500); 20 Mar 2010 22:30:56 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 5002 invoked by uid 99); 20 Mar 2010 22:30:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Mar 2010 22:30:56 +0000 X-ASF-Spam-Status: No, hits=-1137.8 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Mar 2010 22:30:55 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 429332388980; Sat, 20 Mar 2010 22:30:35 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r925697 - /harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysock.c Date: Sat, 20 Mar 2010 22:30:35 -0000 To: commits@harmony.apache.org From: hindessm@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100320223035.429332388980@eris.apache.org> Author: hindessm Date: Sat Mar 20 22:30:34 2010 New Revision: 925697 URL: http://svn.apache.org/viewvc?rev=925697&view=rev Log: Avoid mixing declarations and code. Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysock.c Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysock.c URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysock.c?rev=925697&r1=925696&r2=925697&view=diff ============================================================================== --- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysock.c (original) +++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/unix/hysock.c Sat Mar 20 22:30:34 2010 @@ -4988,6 +4988,8 @@ getNextNetlinkMsg (struct HyPortLibrary struct sockaddr_nl nladdr; struct msghdr msg; struct iovec iov; + int reallocLoop = 1; + iov.iov_base = netlinkContext->buffer; iov.iov_len = netlinkContext->bufferSize; msg.msg_name = (void *)&(nladdr); @@ -4995,8 +4997,6 @@ getNextNetlinkMsg (struct HyPortLibrary msg.msg_iov = &iov; msg.msg_iovlen = 1; - int reallocLoop = 1; - while (reallocLoop) { (void)recvmsg(netlinkContext->netlinkSocketHandle, &msg, MSG_PEEK);