You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by od...@apache.org on 2009/02/25 11:37:57 UTC
svn commit: r747733 -
/harmony/enhanced/classlib/branches/java6/modules/luni/src/main/native/luni/shared/netif.c
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 */