diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2017-04-24 20:10:58 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2017-04-24 20:10:58 (GMT) |
commit | 6fac0de1582f9b8f9a85893cd269a86203b7fc41 (patch) | |
tree | 32646dc32eb602c3a06c64f390bba138f160ad0b /src/H5PL.c | |
parent | d9a69c592f384b9078e41a1affbf96d684074c2f (diff) | |
download | hdf5-6fac0de1582f9b8f9a85893cd269a86203b7fc41.zip hdf5-6fac0de1582f9b8f9a85893cd269a86203b7fc41.tar.gz hdf5-6fac0de1582f9b8f9a85893cd269a86203b7fc41.tar.bz2 |
Revert HDFFV-9655 by disabling test and not using new function.
Diffstat (limited to 'src/H5PL.c')
-rw-r--r-- | src/H5PL.c | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -720,17 +720,19 @@ done: * * Purpose: Query the size of the current list of plugin paths. * - * Return: Plugin path size (can't indicate failure due to unsigned type) + * Return: Plugin path size * *------------------------------------------------------------------------- */ -unsigned int -H5PLsize(void) +herr_t +H5PLsize(unsigned int *listsize) { - unsigned int ret_value = (unsigned int)H5PL_num_paths_g; + herr_t ret_value = SUCCEED; /* Return value */ + + FUNC_ENTER_API(FAIL) + H5TRACE1("e", "*Iu", listsize); - FUNC_ENTER_API(0) - H5TRACE0("Iu",""); + *listsize = (unsigned int)H5PL_num_paths_g; done: FUNC_LEAVE_API(ret_value) @@ -778,7 +780,7 @@ H5PL__init_path_table(void) /* Check for too many directories in path */ if(H5PL_num_paths_g == H5PL_MAX_PATH_NUM) HGOTO_ERROR(H5E_PLUGIN, H5E_NOSPACE, FAIL, "too many directories in path for table") - if(NULL == (H5PL_path_table_g[H5PL_num_paths_g] = H5PL__env_strdup(dir))) + if(NULL == (H5PL_path_table_g[H5PL_num_paths_g] = H5MM_strdup(dir))) HGOTO_ERROR(H5E_PLUGIN, H5E_CANTALLOC, FAIL, "can't allocate memory for path") H5PL_num_paths_g++; dir = HDstrtok(NULL, H5PL_PATH_SEPARATOR); |