harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r574552 - in /harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni: shared/nethelp.c shared/socket.c unix/OSNetworkSystemLinux.c windows/OSNetworkSystemWin32.c
Date Tue, 11 Sep 2007 11:33:29 GMT
Author: hindessm
Date: Tue Sep 11 04:33:27 2007
New Revision: 574552

URL: http://svn.apache.org/viewvc?rev=574552&view=rev
Log:
Remove bogus initialisations and fix documentation.

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c
    harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/socket.c
    harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/unix/OSNetworkSystemLinux.c
    harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/windows/OSNetworkSystemWin32.c

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c?rev=574552&r1=574551&r2=574552&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c Tue
Sep 11 04:33:27 2007
@@ -754,10 +754,11 @@
 /**
  * Answer the 'address' field value from a java.net.InetAddress
  *
- * @param env           pointer to the JNI library
- * @param anInetAddress   the object to access the 'value' field of
+ * @param[in]  env            pointer to the JNI library
+ * @param[in]  anInetAddress  the object to access the 'value' field of
+ * @param[out] buffer         bytes from the address jbyte array
+ * @param[out] length         length of the address in stored in buffer
  *
- * @return  the 'address' field integer value (completion status is not returned)
  */
 
 void

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/socket.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/socket.c?rev=574552&r1=574551&r2=574552&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/socket.c (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/socket.c Tue
Sep 11 04:33:27 2007
@@ -266,7 +266,7 @@
   PORT_ACCESS_FROM_ENV (env);
   I_32 result;
   U_8 nipmcast[HYSOCK_INADDR6_LEN], nipInterface[HYSOCK_INADDR6_LEN];
-  U_32 length, lengthIF = HYSOCK_INADDR_LEN;
+  U_32 length, lengthIF;
   hyipmreq_struct ipmreqP;
   hysockaddr_struct sockaddrP;
   hyipv6_mreq_struct ipv6Mreq;

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=574552&r1=574551&r2=574552&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 Sep 11 04:33:27 2007
@@ -65,7 +65,7 @@
   struct pollfd my_pollfd;
   int sockadd_size = sizeof (source);
   jbyte host[HYSOCK_INADDR6_LEN];
-  U_32 length =  (*env)->GetArrayLength (env,address);
+  U_32 length;
 
   int sock = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);
   if (INVALID_SOCKET == sock){

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/windows/OSNetworkSystemWin32.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/windows/OSNetworkSystemWin32.c?rev=574552&r1=574551&r2=574552&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/windows/OSNetworkSystemWin32.c
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/windows/OSNetworkSystemWin32.c
Tue Sep 11 04:33:27 2007
@@ -229,7 +229,7 @@
   struct ICMPHeader* icmphdr;
   struct WSAData wsaData;
   int ret = UNREACHABLE;
-  U_32 length =  (*env)->GetArrayLength (env,address);
+  U_32 length;
 	      
   // start raw socket, return -1 for privilege can not be obtained
   if (WSAStartup(MAKEWORD(2, 2), &wsaData) != 0) {



Mime
View raw message