harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r663564 - /harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/jarfile.c
Date Thu, 05 Jun 2008 12:04:02 GMT
Author: hindessm
Date: Thu Jun  5 05:04:02 2008
New Revision: 663564

URL: http://svn.apache.org/viewvc?rev=663564&view=rev
Log:
Remove redundant #define.

Modified:
    harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/jarfile.c

Modified: harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/jarfile.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/jarfile.c?rev=663564&r1=663563&r2=663564&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/jarfile.c
(original)
+++ harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/jarfile.c
Thu Jun  5 05:04:02 2008
@@ -91,8 +91,6 @@
 					       jbyteArray zipName)
 {
 
-#define MAX_PATH_J	1024
-
 #define RESULT_BUF_SIZE 256
 
   PORT_ACCESS_FROM_ENV (env);
@@ -116,8 +114,8 @@
   char metaInfName[10];		/* 10 == strlen("META-INF/") + 1 */
   jobjectArray result = NULL;
   char *nameBuf, *newNameBuf, *oldNameBuf = NULL;
-  char startNameBuf[MAX_PATH_J];
-  UDATA nameBufSize = MAX_PATH_J;
+  char startNameBuf[HyMaxPath];
+  UDATA nameBufSize = HyMaxPath;
   IDATA rc;
 #ifdef HY_ZIP_API
   VMIZipFunctionTable *zipFuncs = (*VMI)->GetZipFunctions(VMI);
@@ -225,6 +223,5 @@
     }
   return NULL;
 
-#undef MAX_PATH_J
 #undef RESULT_BUF_SIZE
 }



Mime
View raw message