harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r666326 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/OSNetworkSystemLinux.c
Date Tue, 10 Jun 2008 21:09:08 GMT
Author: hindessm
Date: Tue Jun 10 14:09:07 2008
New Revision: 666326

URL: http://svn.apache.org/viewvc?rev=666326&view=rev
Log:
Fix compiler warnings.

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/OSNetworkSystemLinux.c

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/OSNetworkSystemLinux.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/OSNetworkSystemLinux.c?rev=666326&r1=666325&r2=666326&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/OSNetworkSystemLinux.c
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/OSNetworkSystemLinux.c
Tue Jun 10 14:09:07 2008
@@ -57,7 +57,6 @@
 // Alternative Select function
 int
 selectRead (JNIEnv * env,hysocket_t hysocketP, I_32 uSecTime, BOOLEAN accept){
-  PORT_ACCESS_FROM_ENV (env);
   I_32 result = 0;
   I_32 timeout;
   struct pollfd my_pollfd;
@@ -269,7 +268,7 @@
       (*env)->DeleteLocalRef(env, gotFD);
 
       /* hysocketP is -1 if the socket is closed */
-      my_pollfds[val].fd = hysocketP == -1 ? -1 : hysocketP->sock;
+      my_pollfds[val].fd = (IDATA)hysocketP == -1 ? -1 : hysocketP->sock;
       my_pollfds[val].events = POLLIN | POLLPRI;
       my_pollfds[val].revents = 0;
   }
@@ -280,7 +279,7 @@
       (*env)->DeleteLocalRef(env, gotFD);
 
       /* hysocketP is -1 if the socket is closed */
-      my_pollfds[countReadC + val].fd = hysocketP == -1 ? -1 : hysocketP->sock;
+      my_pollfds[countReadC + val].fd = (IDATA)hysocketP == -1 ? -1 : hysocketP->sock;
       my_pollfds[countReadC + val].events = POLLOUT;
       my_pollfds[countReadC + val].revents = 0;
   }



Mime
View raw message