diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2001-10-25 19:29:37 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2001-10-25 19:29:37 (GMT) |
commit | b3afaccfe51320c3cb38a2338d17ba8f79c15073 (patch) | |
tree | d792e019c45166e605db14cad8911961fa919632 /src/H5FDstdio.c | |
parent | 46af16f87be6a9977e14a99609063a82c81eba45 (diff) | |
download | hdf5-b3afaccfe51320c3cb38a2338d17ba8f79c15073.zip hdf5-b3afaccfe51320c3cb38a2338d17ba8f79c15073.tar.gz hdf5-b3afaccfe51320c3cb38a2338d17ba8f79c15073.tar.bz2 |
[svn-r4572]
Purpose:
Followup file access property list changes.
Platforms tested:
IRIX64, SunOS 5.7, FreeBSD.
Diffstat (limited to 'src/H5FDstdio.c')
-rw-r--r-- | src/H5FDstdio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/H5FDstdio.c b/src/H5FDstdio.c index 3c1a0a6..3082f96 100644 --- a/src/H5FDstdio.c +++ b/src/H5FDstdio.c @@ -15,6 +15,7 @@ #include <sys/stat.h> #include "hdf5.h" +#include "H5private.h" /* library function */ #ifdef H5_HAVE_STDIO_H #include <stdio.h> @@ -227,7 +228,8 @@ H5Pset_fapl_stdio(hid_t fapl_id) /* Clear the error stack */ H5Eclear(); - if (H5P_FILE_ACCESS!=H5Pget_class(fapl_id)) { + if(H5I_GENPROP_LST != H5I_get_type(fapl_id) || + TRUE != H5Pisa_class(fapl_id, H5P_FILE_ACCESS)) { H5Epush_ret(func, H5E_PLIST, H5E_BADTYPE, "not a file access property list", -1); } |