You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by hi...@apache.org on 2008/06/10 23:09:08 UTC
svn commit: r666326 -
/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/OSNetworkSystemLinux.c
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;
}