summaryrefslogtreecommitdiffstats
path: root/test/vol.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/vol.c')
-rw-r--r--test/vol.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/vol.c b/test/vol.c
index 551abd1..c9a9aa1 100644
--- a/test/vol.c
+++ b/test/vol.c
@@ -584,7 +584,7 @@ fake_vol_info_to_str(const void *info, char **str)
}
/* Allocate the string long enough for the info */
- if (NULL == (*str = (char *)HDcalloc(1, str_size)))
+ if (NULL == (*str = (char *)calloc(1, str_size)))
return FAIL;
HDsnprintf(*str, str_size, "%d", val);
@@ -628,7 +628,7 @@ fake_vol_free_info(void *info)
herr_t ret_value = SUCCEED; /* Return value */
if (info)
- HDfree(info);
+ free(info);
return ret_value;
} /* end fake_vol_free_info() */
@@ -715,7 +715,7 @@ test_vol_registration(void)
TEST_ERROR;
/* Test registering a VOL connector with an incompatible version # */
- if (NULL == (bad_fake_vol_class = HDmalloc(sizeof(H5VL_class_t))))
+ if (NULL == (bad_fake_vol_class = malloc(sizeof(H5VL_class_t))))
TEST_ERROR;
HDmemcpy(bad_fake_vol_class, &fake_vol_g, sizeof(H5VL_class_t));
bad_fake_vol_class->version = H5VL_VERSION + 1;
@@ -726,7 +726,7 @@ test_vol_registration(void)
H5E_END_TRY
if (H5I_INVALID_HID != vol_id)
FAIL_PUTS_ERROR("should not be able to register a connector with an incompatible version #");
- HDfree(bad_fake_vol_class);
+ free(bad_fake_vol_class);
bad_fake_vol_class = NULL;
/* Load a VOL interface
@@ -807,7 +807,7 @@ error:
H5E_END_TRY
if (bad_fake_vol_class)
- HDfree(bad_fake_vol_class);
+ free(bad_fake_vol_class);
return FAIL;
} /* end test_vol_registration() */
@@ -2192,7 +2192,7 @@ test_async_vol_props(void)
if (conn_env_str) {
if (HDsetenv(HDF5_VOL_CONNECTOR, conn_env_str, TRUE) < 0)
TEST_ERROR;
- HDfree(conn_env_str);
+ free(conn_env_str);
if (H5VL__reparse_def_vol_conn_variable_test() < 0)
TEST_ERROR;
@@ -2209,7 +2209,7 @@ error:
H5VLunregister_connector(vol_id);
}
H5E_END_TRY
- HDfree(conn_env_str);
+ free(conn_env_str);
return FAIL;
} /* end test_async_vol_props() */
@@ -2510,7 +2510,7 @@ test_info_to_str(void)
/* Free the string being returned */
if (ret_str)
- HDfree(ret_str);
+ free(ret_str);
if (H5Pclose(fapl_id) < 0)
TEST_ERROR;