harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r619643 - /harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/jarfile.c
Date Thu, 07 Feb 2008 21:20:27 GMT
Author: hindessm
Date: Thu Feb  7 13:20:26 2008
New Revision: 619643

URL: http://svn.apache.org/viewvc?rev=619643&view=rev
Log:
Fixing compiler warnings.

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=619643&r1=619642&r2=619643&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 Feb  7 13:20:26 2008
@@ -47,7 +47,7 @@
 #endif /* HY_ZIP_API */
 
   /* Build a new ZipEntry from the C struct */
-  entryName = ((*env)->NewStringUTF (env, zipEntry->filename));
+  entryName = ((*env)->NewStringUTF (env, (const char*)zipEntry->filename));
   if (((*env)->ExceptionCheck (env)))
     return NULL;
 
@@ -67,7 +67,7 @@
 	return NULL;
       ((*env)->
        SetByteArrayRegion (env, extra, 0, zipEntry->extraFieldLength,
-			   zipEntry->extraField));
+			   (jbyte*)zipEntry->extraField));
       jclmem_free_memory (env, zipEntry->extraField);
       zipEntry->extraField = NULL;
     }
@@ -114,7 +114,6 @@
   UDATA resultCount = 0, offset, i;
   void *scanPtr;
   char metaInfName[10];		/* 10 == strlen("META-INF/") + 1 */
-  const UDATA metaInfSize = 10;	/* 10 == strlen("META-INF/") + 1 */
   jobjectArray result = NULL;
   char *nameBuf, *newNameBuf, *oldNameBuf = NULL;
   char startNameBuf[MAX_PATH_J];



Mime
View raw message