summaryrefslogtreecommitdiffstats
path: root/src/H5FDsec2.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2001-11-02 19:46:36 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2001-11-02 19:46:36 (GMT)
commit5122df335cc2627bfdd85e3fcff8bd1731e8c4ae (patch)
treeb2f22fe06fb4fde61e7113b9aee17597a9fedd20 /src/H5FDsec2.c
parentec59e5f52aa06ed8267f8df2281f322fb6b9ed78 (diff)
downloadhdf5-5122df335cc2627bfdd85e3fcff8bd1731e8c4ae.zip
hdf5-5122df335cc2627bfdd85e3fcff8bd1731e8c4ae.tar.gz
hdf5-5122df335cc2627bfdd85e3fcff8bd1731e8c4ae.tar.bz2
[svn-r4584]
Purpose: Switch from old property list to new generic property list. Description: Mainly changed H5Pcreat, H5Pclose, H5Pcopy. Platforms tested: IRIX64 6.5, FreeBSD, SunOS 5.7.
Diffstat (limited to 'src/H5FDsec2.c')
-rw-r--r--src/H5FDsec2.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/H5FDsec2.c b/src/H5FDsec2.c
index a638381..ea963e7 100644
--- a/src/H5FDsec2.c
+++ b/src/H5FDsec2.c
@@ -235,8 +235,10 @@ H5Pset_fapl_sec2(hid_t fapl_id)
FUNC_ENTER(H5Pset_fapl_sec2, FAIL);
H5TRACE1("e","i",fapl_id);
- if (H5P_FILE_ACCESS!=H5Pget_class(fapl_id))
- HRETURN_ERROR(H5E_PLIST, H5E_BADTYPE, FAIL, "not a fapl");
+ if(H5I_GENPROP_LST != H5I_get_type(fapl_id) ||
+ TRUE != H5Pisa_class(fapl_id, H5P_FILE_ACCESS))
+ HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL,
+ "not a file access property list");
ret_value= H5Pset_driver(fapl_id, H5FD_SEC2, NULL);