harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r747510 - /harmony/enhanced/classlib/branches/java6/modules/luni/src/main/native/luni/unix/helpers.c
Date Tue, 24 Feb 2009 19:04:44 GMT
Author: hindessm
Date: Tue Feb 24 19:04:43 2009
New Revision: 747510

URL: http://svn.apache.org/viewvc?rev=747510&view=rev
Log:
This is C not C++ so declarations must come before code or some compilers
will (rightly) complain.

Modified:
    harmony/enhanced/classlib/branches/java6/modules/luni/src/main/native/luni/unix/helpers.c

Modified: harmony/enhanced/classlib/branches/java6/modules/luni/src/main/native/luni/unix/helpers.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/luni/src/main/native/luni/unix/helpers.c?rev=747510&r1=747509&r2=747510&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/luni/src/main/native/luni/unix/helpers.c
(original)
+++ harmony/enhanced/classlib/branches/java6/modules/luni/src/main/native/luni/unix/helpers.c
Tue Feb 24 19:04:43 2009
@@ -920,13 +920,12 @@
 {
   I_32 result;
   struct stat buffer;
+  PORT_ACCESS_FROM_ENV (env);
 
   result = stat (path, &buffer);
   if (result == -1)
     return 0;
 
-  PORT_ACCESS_FROM_ENV (env);
-
   //if the current user is 'root', then the file is executable when 
   //either of user/group/others has the permission to execute.
   // and the directory is always executable.



Mime
View raw message