diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2013-01-23 15:10:46 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2013-01-23 15:10:46 (GMT) |
commit | a1bd48eb2b8ff4fae657f704d9f31e9293b860f6 (patch) | |
tree | ee01b878364461524ada24286b7a1b259c2b7ebb /src | |
parent | 090ec43d239e1a515b3f7f817af79438abaeaa78 (diff) | |
download | hdf5-a1bd48eb2b8ff4fae657f704d9f31e9293b860f6.zip hdf5-a1bd48eb2b8ff4fae657f704d9f31e9293b860f6.tar.gz hdf5-a1bd48eb2b8ff4fae657f704d9f31e9293b860f6.tar.bz2 |
[svn-r23194] 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 koala, jam, ostrich.
Diffstat (limited to 'src')
-rw-r--r-- | src/H5Dio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5Dio.c b/src/H5Dio.c index 6407ea8..4499fe3 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") |