< prev index next >

src/hotspot/os/aix/os_aix.cpp

Print this page
@@ -552,11 +552,11 @@
    // Note that the space for the trailing null is provided
    // by the nulls included by the sizeof operator.
    const size_t bufsize =
      MAX2((size_t)MAXPATHLEN,  // For dll_dir & friends.
           (size_t)MAXPATHLEN + sizeof(EXTENSIONS_DIR)); // extensions dir
-   char *buf = (char *)NEW_C_HEAP_ARRAY(char, bufsize, mtInternal);
+   char *buf = NEW_C_HEAP_ARRAY(char, bufsize, mtInternal);
  
    // sysclasspath, java_home, dll_dir
    {
      char *pslash;
      os::jvm_path(buf, bufsize);

@@ -594,11 +594,11 @@
    const char *v_colon = ":";
    if (v == NULL) { v = ""; v_colon = ""; }
  
    // Concatenate user and invariant part of ld_library_path.
    // That's +1 for the colon and +1 for the trailing '\0'.
-   char *ld_library_path = (char *)NEW_C_HEAP_ARRAY(char, strlen(v) + 1 + sizeof(DEFAULT_LIBPATH) + 1, mtInternal);
+   char *ld_library_path = NEW_C_HEAP_ARRAY(char, strlen(v) + 1 + sizeof(DEFAULT_LIBPATH) + 1, mtInternal);
    sprintf(ld_library_path, "%s%s" DEFAULT_LIBPATH, v, v_colon);
    Arguments::set_library_path(ld_library_path);
    FREE_C_HEAP_ARRAY(char, ld_library_path);
  
    // Extensions directories.
< prev index next >