harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r747733 - /harmony/enhanced/classlib/branches/java6/modules/luni/src/main/native/luni/shared/netif.c
Date Wed, 25 Feb 2009 10:37:57 GMT
Author: odeakin
Date: Wed Feb 25 10:37:56 2009
New Revision: 747733

URL: http://svn.apache.org/viewvc?rev=747733&view=rev
Log:
In C we must declare variables before code - some compilers fail otherwise.

Modified:
    harmony/enhanced/classlib/branches/java6/modules/luni/src/main/native/luni/shared/netif.c

Modified: harmony/enhanced/classlib/branches/java6/modules/luni/src/main/native/luni/shared/netif.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/luni/src/main/native/luni/shared/netif.c?rev=747733&r1=747732&r2=747733&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/luni/src/main/native/luni/shared/netif.c
(original)
+++ harmony/enhanced/classlib/branches/java6/modules/luni/src/main/native/luni/shared/netif.c
Wed Feb 25 10:37:56 2009
@@ -164,6 +164,7 @@
 	struct ifconf ifc;
 	int ifconfCommand = SIOCGIFCONF;
 	char * lastName;
+    FILE * ipv6 = NULL;
 #endif
 	/* required call if we are going to call port library methods */
 	PORT_ACCESS_FROM_ENV (env);
@@ -908,7 +909,7 @@
   networkInterfaceArray.elements = interfaces;
   networkInterfaceArray.length = numAdapters;
   lastName = NULL;
-  FILE * ipv6 = NULL;
+
   for (counter = 0; counter < totalInterfaces; counter++)
     {
       /* make sure the interface is still up */



Mime
View raw message