summaryrefslogtreecommitdiffstats
path: root/src/H5F.c
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2020-12-16 05:39:19 (GMT)
committerGitHub <noreply@github.com>2020-12-16 05:39:19 (GMT)
commitaffbead81a20712920bfe350eb90b0a4bb754ebf (patch)
tree633747a9663f2252380267c3dc1028326ac8d094 /src/H5F.c
parent865b10b7a707005f08b13e92dec90e402de1f21d (diff)
downloadhdf5-affbead81a20712920bfe350eb90b0a4bb754ebf.zip
hdf5-affbead81a20712920bfe350eb90b0a4bb754ebf.tar.gz
hdf5-affbead81a20712920bfe350eb90b0a4bb754ebf.tar.bz2
Enable H5Fopen to probe list of available VOL connectors when opening a (#182)
file
Diffstat (limited to 'src/H5F.c')
-rw-r--r--src/H5F.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5F.c b/src/H5F.c
index 365decf..d535ffe 100644
--- a/src/H5F.c
+++ b/src/H5F.c
@@ -690,7 +690,7 @@ done:
static hid_t
H5F__open_api_common(const char *filename, unsigned flags, hid_t fapl_id, void **token_ptr)
{
- H5F_t * new_file = NULL; /* File struct for new file */
+ void * new_file = NULL; /* File struct for new file */
H5P_genplist_t * plist; /* Property list pointer */
H5VL_connector_prop_t connector_prop; /* Property for VOL connector ID & info */
hid_t ret_value = H5I_INVALID_HID; /* Return value */
@@ -730,8 +730,8 @@ H5F__open_api_common(const char *filename, unsigned flags, hid_t fapl_id, void *
HGOTO_ERROR(H5E_FILE, H5E_CANTSET, H5I_INVALID_HID, "can't set VOL connector info in API context")
/* Open the file through the VOL layer */
- if (NULL == (new_file = (H5F_t *)H5VL_file_open(&connector_prop, filename, flags, fapl_id,
- H5P_DATASET_XFER_DEFAULT, token_ptr)))
+ if (NULL == (new_file = H5VL_file_open(&connector_prop, filename, flags, fapl_id,
+ H5P_DATASET_XFER_DEFAULT, token_ptr)))
HGOTO_ERROR(H5E_FILE, H5E_CANTOPENFILE, H5I_INVALID_HID, "unable to open file")
/* Get an ID for the file */