mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
Minor tweaks noticed while going over VOL documentation.
This commit is contained in:
parent
107bcbd3df
commit
bbd4f7d2a0
@ -937,7 +937,7 @@ hid_t
|
||||
H5Freopen(hid_t file_id)
|
||||
{
|
||||
H5VL_object_t *vol_obj = NULL;
|
||||
H5F_t *file = NULL; /* File struct for new file */
|
||||
void *file = NULL; /* File struct for new file */
|
||||
hid_t ret_value = H5I_INVALID_HID; /* Return value */
|
||||
|
||||
FUNC_ENTER_API(H5I_INVALID_HID)
|
||||
|
@ -241,7 +241,7 @@ H5VL__native_dataset_get(void *obj, H5VL_dataset_get_t get_type,
|
||||
break;
|
||||
}
|
||||
|
||||
/* H5Dget_space_statuc */
|
||||
/* H5Dget_space_status */
|
||||
case H5VL_DATASET_GET_SPACE_STATUS:
|
||||
{
|
||||
H5D_space_status_t *allocation = HDva_arg(arguments, H5D_space_status_t *);
|
||||
|
@ -368,14 +368,14 @@ H5VL__native_file_specific(void *obj, H5VL_file_specific_t specific_type,
|
||||
H5I_type_t type = (H5I_type_t)HDva_arg(arguments, int); /* enum work-around */
|
||||
const char *name = HDva_arg(arguments, const char *);
|
||||
H5F_t *child = HDva_arg(arguments, H5F_t *);
|
||||
hid_t plist_id = HDva_arg(arguments, hid_t);
|
||||
hid_t fmpl_id = HDva_arg(arguments, hid_t);
|
||||
H5G_loc_t loc;
|
||||
|
||||
if(H5G_loc_real(obj, type, &loc) < 0)
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a file or file object")
|
||||
|
||||
/* Do the mount */
|
||||
if(H5F__mount(&loc, name, child, plist_id) < 0)
|
||||
if(H5F__mount(&loc, name, child, fmpl_id) < 0)
|
||||
HGOTO_ERROR(H5E_FILE, H5E_MOUNT, FAIL, "unable to mount file")
|
||||
|
||||
break;
|
||||
@ -403,10 +403,10 @@ H5VL__native_file_specific(void *obj, H5VL_file_specific_t specific_type,
|
||||
{
|
||||
hid_t fapl_id = HDva_arg(arguments, hid_t);
|
||||
const char *name = HDva_arg(arguments, const char *);
|
||||
htri_t *ret = HDva_arg(arguments, htri_t *);
|
||||
htri_t *result = HDva_arg(arguments, htri_t *);
|
||||
|
||||
/* Call private routine */
|
||||
if((*ret = H5F__is_hdf5(name, fapl_id)) < 0)
|
||||
if((*result = H5F__is_hdf5(name, fapl_id)) < 0)
|
||||
HGOTO_ERROR(H5E_FILE, H5E_CANTINIT, FAIL, "error in HDF5 file check")
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user