You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by hi...@apache.org on 2008/06/05 14:04:02 UTC

svn commit: r663564 - /harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/jarfile.c

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
 }