diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-06-19 04:55:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-19 04:55:57 (GMT) |
commit | 560110dbc7df26adb2a6f68e098fa1d4f37d3a6c (patch) | |
tree | dbf5a255580ed2eb6c250421550e62c98252f4bc /java/src/jni/h5eImp.c | |
parent | a37795d8b98322ab7dfff0b10c96f1d677ab5985 (diff) | |
download | hdf5-560110dbc7df26adb2a6f68e098fa1d4f37d3a6c.zip hdf5-560110dbc7df26adb2a6f68e098fa1d4f37d3a6c.tar.gz hdf5-560110dbc7df26adb2a6f68e098fa1d4f37d3a6c.tar.bz2 |
Removes the HD prefix from java C99 calls (#3149)
POSIX calls (HDstrndup, etc.) are unchanged
Diffstat (limited to 'java/src/jni/h5eImp.c')
-rw-r--r-- | java/src/jni/h5eImp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/java/src/jni/h5eImp.c b/java/src/jni/h5eImp.c index 0eec54f..a44363e 100644 --- a/java/src/jni/h5eImp.c +++ b/java/src/jni/h5eImp.c @@ -298,7 +298,7 @@ Java_hdf_hdf5lib_H5_H5Eget_1class_1name(JNIEnv *env, jclass clss, jlong cls_id) if (!buf_size) H5_BAD_ARGUMENT_ERROR(ENVONLY, "H5Eget_class_name: no class name"); - if (NULL == (namePtr = (char *)HDmalloc(sizeof(char) * (size_t)buf_size + 1))) + if (NULL == (namePtr = (char *)malloc(sizeof(char) * (size_t)buf_size + 1))) H5_OUT_OF_MEMORY_ERROR(ENVONLY, "H5Eget_class_name: malloc failed"); if ((H5Eget_class_name((hid_t)cls_id, (char *)namePtr, (size_t)buf_size + 1)) < 0) @@ -310,7 +310,7 @@ Java_hdf_hdf5lib_H5_H5Eget_1class_1name(JNIEnv *env, jclass clss, jlong cls_id) done: if (namePtr) - HDfree(namePtr); + free(namePtr); return str; } /* end Java_hdf_hdf5lib_H5_H5Eget_1class_1name */ @@ -452,7 +452,7 @@ Java_hdf_hdf5lib_H5_H5Eget_1msg(JNIEnv *env, jclass clss, jlong msg_id, jintArra if (!buf_size) H5_BAD_ARGUMENT_ERROR(ENVONLY, "H5Eget_msg: invalid message"); - if (NULL == (namePtr = (char *)HDmalloc(sizeof(char) * (size_t)buf_size + 1))) + if (NULL == (namePtr = (char *)malloc(sizeof(char) * (size_t)buf_size + 1))) H5_OUT_OF_MEMORY_ERROR(ENVONLY, "H5Eget_msg: malloc failed"); PIN_INT_ARRAY(ENVONLY, error_msg_type_list, theArray, NULL, "H5Eget_msg: error_msg_type_list not pinned"); @@ -470,7 +470,7 @@ done: if (theArray) UNPIN_INT_ARRAY(ENVONLY, error_msg_type_list, theArray, 0); if (namePtr) - HDfree(namePtr); + free(namePtr); return str; } /* end Java_hdf_hdf5lib_H5_H5Eget_1msg */ |