summaryrefslogtreecommitdiffstats
path: root/src/H5F.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2012-03-29 18:09:30 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2012-03-29 18:09:30 (GMT)
commit64b76cff83f1744fa658e14036999dc8d38c75c3 (patch)
treec4950c48f5481b645a63a54dba3fbacd4fc380e9 /src/H5F.c
parentc05a5a49c8d37ac216c1d1c7c4c98ea04a60f8a5 (diff)
downloadhdf5-64b76cff83f1744fa658e14036999dc8d38c75c3.zip
hdf5-64b76cff83f1744fa658e14036999dc8d38c75c3.tar.gz
hdf5-64b76cff83f1744fa658e14036999dc8d38c75c3.tar.bz2
[svn-r22192] - change VOL callback for file open to be the same as the API call
- some code formatting according to coding standard
Diffstat (limited to 'src/H5F.c')
-rw-r--r--src/H5F.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/H5F.c b/src/H5F.c
index 5d3abb1..b32c07d 100644
--- a/src/H5F.c
+++ b/src/H5F.c
@@ -1508,20 +1508,9 @@ H5Fopen(const char *filename, unsigned flags, hid_t fapl_id)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not file access property list")
/* Open the file */
- if((ret_value = H5VL_file_open(filename, flags, H5P_FILE_CREATE_DEFAULT, fapl_id, H5AC_dxpl_id))<0)
+ if((ret_value = H5VL_file_open(filename, flags, fapl_id))<0)
HGOTO_ERROR(H5E_FILE, H5E_CANTOPENFILE, FAIL, "unable to open file")
-#if 0
- /* Open the file */
- if(NULL == (new_file = H5F_open(filename, flags, H5P_FILE_CREATE_DEFAULT, fapl_id, H5AC_dxpl_id)))
- HGOTO_ERROR(H5E_FILE, H5E_CANTOPENFILE, FAIL, "unable to open file")
- /* Get an atom for the file */
- if((ret_value = H5I_register(H5I_FILE, new_file, TRUE)) < 0)
- HGOTO_ERROR(H5E_ATOM, H5E_CANTREGISTER, FAIL, "unable to atomize file handle")
- /* Keep this ID in file object structure */
- new_file->file_id = ret_value;
-#endif
-
done:
FUNC_LEAVE_API(ret_value)
} /* end H5Fopen() */