Author: mturk
Date: Tue Jun 28 05:37:22 2011
New Revision: 1140443

URL: http://svn.apache.org/viewvc?rev=1140443&view=rev
Log:
Suppress compile warnings

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

Modified: commons/sandbox/runtime/trunk/src/main/native/shared/netaddr.c
URL: 
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/netaddr.c?rev=1140443&r1=1140442&r2=1140443&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/shared/netaddr.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/shared/netaddr.c Tue Jun 28 
05:37:22 2011
@@ -173,7 +173,7 @@ inet_ntop6(const unsigned char *src, cha
         /* Is this address an encapsulated IPv4? */
         if (i == 6 && best.base == 0 &&
             (best.len == 6 || (best.len == 5 && words[5] == 0xffff))) {
-            if (!inet_ntop4(src+12, tp, sizeof(tmp) - (tp - tmp))) {
+            if (!inet_ntop4(src+12, tp, (int)(sizeof(tmp) - (tp - tmp)))) {
                 return 0;
             }
             tp += strlen(tp);

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=1140443&r1=1140442&r2=1140443&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/shared/select.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/shared/select.c Tue Jun 28 
05:37:22 2011
@@ -192,7 +192,7 @@ ACR_NET_EXPORT(jshort, Select, wait1)(JN
             tp->tv_sec  = (long)AcrTimeSec(tmo);
             tp->tv_usec = (long)AcrTimeUsec(tmo);
         }
-        ns = select(fd->u.s + 1, &rdset, &wrset, &exset, tp);
+        ns = select(fd->u.f + 1, &rdset, &wrset, &exset, tp);
 #if !defined(WINDOWS)
         if (ns == -1 && errno == EINTR) {
             if (tmo >= 0) {


Reply via email to