summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/h5tools.c')
-rw-r--r--tools/lib/h5tools.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c
index c11718e..429898a 100644
--- a/tools/lib/h5tools.c
+++ b/tools/lib/h5tools.c
@@ -308,8 +308,8 @@ error:
*-------------------------------------------------------------------------
*/
hid_t
-h5tools_fopen(const char *fname, const char *driver, char *drivername,
- size_t drivername_size)
+h5tools_fopen(const char *fname, unsigned flags, const char *driver,
+ char *drivername, size_t drivername_size)
{
unsigned drivernum;
hid_t fid = FAIL;
@@ -321,7 +321,7 @@ h5tools_fopen(const char *fname, const char *driver, char *drivername,
goto done;
H5E_BEGIN_TRY {
- fid = H5Fopen(fname, H5F_ACC_RDONLY, fapl);
+ fid = H5Fopen(fname, flags, fapl);
} H5E_END_TRY;
if (fid == FAIL)
@@ -335,7 +335,7 @@ h5tools_fopen(const char *fname, const char *driver, char *drivername,
goto done;
H5E_BEGIN_TRY {
- fid = H5Fopen(fname, H5F_ACC_RDONLY, fapl);
+ fid = H5Fopen(fname, flags, fapl);
} H5E_END_TRY;
if (fid != FAIL)