Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 63085 invoked from network); 7 Feb 2008 21:33:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Feb 2008 21:33:36 -0000 Received: (qmail 16500 invoked by uid 500); 7 Feb 2008 21:33:28 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 16482 invoked by uid 500); 7 Feb 2008 21:33:28 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 16473 invoked by uid 99); 7 Feb 2008 21:33:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 13:33:28 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 21:33:07 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 424811A9832; Thu, 7 Feb 2008 13:33:14 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r619649 - /harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/zip.c Date: Thu, 07 Feb 2008 21:33:14 -0000 To: commits@harmony.apache.org From: hindessm@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080207213314.424811A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: hindessm Date: Thu Feb 7 13:33:01 2008 New Revision: 619649 URL: http://svn.apache.org/viewvc?rev=619649&view=rev Log: Fixing compiler warnings. Modified: harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/zip.c Modified: harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/zip.c URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/zip.c?rev=619649&r1=619648&r2=619649&view=diff ============================================================================== --- harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/zip.c (original) +++ harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/zip.c Thu Feb 7 13:33:01 2008 @@ -93,7 +93,7 @@ length = (*env)->GetArrayLength (env, zipName); length = length < HyMaxPath - 1 ? length : HyMaxPath - 1; - ((*env)->GetByteArrayRegion (env, zipName, 0, length, pathCopy)); + ((*env)->GetByteArrayRegion (env, zipName, 0, length, (jbyte*)pathCopy)); pathCopy[length++] = '\0'; ioh_convertToPlatform (pathCopy); @@ -145,7 +145,6 @@ #ifdef HY_ZIP_API VMI_ACCESS_FROM_ENV(env); #endif /* HY_ZIP_API */ - PORT_ACCESS_FROM_ENV (env); I_32 retval; I_32 extraval; @@ -230,7 +229,7 @@ } ((*env)-> SetByteArrayRegion (env, extra, 0, zipEntry.extraFieldLength, - zipEntry.extraField)); + (jbyte*)zipEntry.extraField)); } entryClass = JCL_CACHE_GET (env, CLS_java_util_zip_ZipEntry); @@ -375,7 +374,6 @@ Java_java_util_zip_ZipFile_00024ZFEnum_resetZip (JNIEnv * env, jobject recv, jlong descriptor) { - PORT_ACCESS_FROM_ENV (env); #ifdef HY_ZIP_API VMI_ACCESS_FROM_ENV(env); #endif /* HY_ZIP_API */ @@ -462,7 +460,7 @@ } /* 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; @@ -499,13 +497,13 @@ #ifndef HY_ZIP_API zip_freeZipEntry (PORTLIB, &zipEntry); #else /* HY_ZIP_API */ - zipFuncs->zip_freeZipEntry (VMI, &zipEntry); //not valid zipEntry (-1) + zipFuncs->zip_freeZipEntry (VMI, &zipEntry); /* not valid zipEntry (-1) */ #endif /* HY_ZIP_API */ return NULL; } ((*env)-> SetByteArrayRegion (env, extra, 0, zipEntry.extraFieldLength, - zipEntry.extraField)); + (jbyte*)zipEntry.extraField)); jclmem_free_memory (env, zipEntry.extraField); zipEntry.extraField = NULL; } @@ -538,7 +536,6 @@ jlong descriptor, jstring entryName) { - PORT_ACCESS_FROM_ENV (env); #ifdef HY_ZIP_API VMI_ACCESS_FROM_ENV(env); #endif /* HY_ZIP_API */ @@ -609,7 +606,7 @@ zipEntry.uncompressedSize); if (retval == 0) (*env)->SetByteArrayRegion (env, buf, 0, zipEntry.uncompressedSize, - zipEntry.data); + (jbyte*)zipEntry.data); #ifndef HY_ZIP_API zip_freeZipEntry (privatePortLibrary, &zipEntry); #else /* HY_ZIP_API */