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);
|