commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1139895 - /commons/sandbox/runtime/trunk/src/main/native/shared/select.c
Date Sun, 26 Jun 2011 18:15:47 GMT
Author: mturk
Date: Sun Jun 26 18:15:47 2011
New Revision: 1139895

URL: http://svn.apache.org/viewvc?rev=1139895&view=rev
Log:
ifdef out unused loop in windows

Modified:
    commons/sandbox/runtime/trunk/src/main/native/shared/select.c

Modified: commons/sandbox/runtime/trunk/src/main/native/shared/select.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/select.c?rev=1139895&r1=1139894&r2=1139895&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/shared/select.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/shared/select.c Sun Jun 26 18:15:47 2011
@@ -83,7 +83,10 @@ ACR_NET_EXPORT(jint, Select, wait0)(JNI_
 #endif
         tp  = &tv;
     }
-    for (;;) {
+#if !defined(WINDOWS)
+    for (;;)
+#endif
+    {
         if (tp != 0) {
             tp->tv_sec  = (long)AcrTimeSec(tmo);
             tp->tv_usec = (long)AcrTimeUsec(tmo);
@@ -100,8 +103,8 @@ ACR_NET_EXPORT(jint, Select, wait0)(JNI_
             }
         }
         else
+            break;
 #endif
-        break;
     }
     if (ns == -1) {
         int err = ACR_GET_NETOS_ERROR();



Mime
View raw message