diff --git a/src/rest_vol_attr.c b/src/rest_vol_attr.c index 5e8692e5..15cef934 100644 --- a/src/rest_vol_attr.c +++ b/src/rest_vol_attr.c @@ -216,7 +216,7 @@ RV_attr_create(void *obj, const H5VL_loc_params_t *loc_params, const char *attr_ /* Form the Datatype portion of the Attribute create request */ if (RV_convert_datatype_to_JSON(type_id, &datatype_body, &datatype_body_len, FALSE, - parent->domain->u.file.server_version) < 0) + parent->domain->u.file.server_info.version) < 0) FUNC_GOTO_ERROR(H5E_DATATYPE, H5E_CANTCONVERT, NULL, "can't convert attribute's datatype to JSON representation"); diff --git a/src/rest_vol_dataset.c b/src/rest_vol_dataset.c index 0f554b42..73317452 100644 --- a/src/rest_vol_dataset.c +++ b/src/rest_vol_dataset.c @@ -3690,7 +3690,7 @@ RV_setup_dataset_create_request_body(void *parent_obj, const char *name, hid_t t /* Form the Datatype portion of the Dataset create request */ if (RV_convert_datatype_to_JSON(type_id, &datatype_body, &datatype_body_len, FALSE, - pobj->domain->u.file.server_version) < 0) + pobj->domain->u.file.server_info.version) < 0) FUNC_GOTO_ERROR(H5E_DATASET, H5E_CANTCONVERT, FAIL, "can't convert dataset's datatype to JSON representation"); diff --git a/src/rest_vol_datatype.c b/src/rest_vol_datatype.c index 7089440f..615e4cf5 100644 --- a/src/rest_vol_datatype.c +++ b/src/rest_vol_datatype.c @@ -158,7 +158,7 @@ RV_datatype_commit(void *obj, const H5VL_loc_params_t *loc_params, const char *n /* Convert the datatype into JSON to be used in the request body */ if (RV_convert_datatype_to_JSON(type_id, &datatype_body, &datatype_body_len, FALSE, - parent->domain->u.file.server_version) < 0) + parent->domain->u.file.server_info.version) < 0) FUNC_GOTO_ERROR(H5E_DATATYPE, H5E_CANTCONVERT, NULL, "can't convert datatype to JSON representation"); /* If this is not a H5Tcommit_anon call, create a link for the Datatype