harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r586098 - /harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/shared/hyport.c
Date Thu, 18 Oct 2007 19:24:39 GMT
Author: hindessm
Date: Thu Oct 18 12:24:37 2007
New Revision: 586098

URL: http://svn.apache.org/viewvc?rev=586098&view=rev
Log:
Applying patches from "[#HARMONY-4968] [classlib][portlib] fix warning at
shared/hyport.c".

Modified:
    harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/shared/hyport.c

Modified: harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/shared/hyport.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/shared/hyport.c?rev=586098&r1=586097&r2=586098&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/shared/hyport.c (original)
+++ harmony/enhanced/classlib/trunk/modules/portlib/src/main/native/port/shared/hyport.c Thu
Oct 18 12:24:37 2007
@@ -590,7 +590,7 @@
 {
   char *endPathPtr = NULL;
   char *launcherName = NULL;
-  char **pathSet = portLib->mem_allocate_memory (portLib, sizeof(char*)*2);
+  const char **pathSet = portLib->mem_allocate_memory (portLib, sizeof(char*)*2);
   char *vmPath = NULL;
 
   hysysinfo_get_executable_name (portLib, NULL, &launcherName);
@@ -616,7 +616,7 @@
     portLib->nls_set_catalog (portLib, pathSet, 2, "harmony", "properties");
     // Free memory for launcherName -- necessary ??
     portLib->mem_free_memory (portLib, launcherName);
-    portLib->mem_free_memory (portLib, pathSet);
+    portLib->mem_free_memory (portLib, (void*) pathSet);
     portLib->mem_free_memory (portLib, vmPath);
   }
 }



Mime
View raw message