summaryrefslogtreecommitdiffstats
path: root/src/H5Dio.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2013-01-23 15:37:51 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2013-01-23 15:37:51 (GMT)
commit2233570f16b68eca4a4c1f7964a0fb0a42dc2627 (patch)
treeb27a47aa5e79112c10c012d3a68f16925358f011 /src/H5Dio.c
parent81a6f5be7c85fcc188c51fb1e211710434f00a93 (diff)
downloadhdf5-2233570f16b68eca4a4c1f7964a0fb0a42dc2627.zip
hdf5-2233570f16b68eca4a4c1f7964a0fb0a42dc2627.tar.gz
hdf5-2233570f16b68eca4a4c1f7964a0fb0a42dc2627.tar.bz2
[svn-r23196] I changed the call to H5P_object_verify to H5I_object as the header file H5Iprivate.h is included but not H5Pprivate.h.
Tested on jam.
Diffstat (limited to 'src/H5Dio.c')
-rw-r--r--src/H5Dio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5Dio.c b/src/H5Dio.c
index 8b6d380..df1c4a3 100644
--- a/src/H5Dio.c
+++ b/src/H5Dio.c
@@ -274,9 +274,9 @@ H5D__pre_write(hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id,
if(TRUE != H5P_isa_class(dxpl_id, H5P_DATASET_XFER))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not xfer parms")
- /* Get the plist structure */
- if(NULL == (plist = H5P_object_verify(dxpl_id, H5P_DATASET_XFER)))
- HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "can't find object for ID")
+ /* Get the dataset transfer property list */
+ if(NULL == (plist = (H5P_genplist_t *)H5I_object(dxpl_id)))
+ HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a dataset transfer property list")
if(H5P_get(plist, H5D_XFER_DIRECT_CHUNK_WRITE_FLAG_NAME, &direct_write) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "error getting flag for direct chunk write")