diff options
author | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2012-03-29 18:09:30 (GMT) |
---|---|---|
committer | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2012-03-29 18:09:30 (GMT) |
commit | 64b76cff83f1744fa658e14036999dc8d38c75c3 (patch) | |
tree | c4950c48f5481b645a63a54dba3fbacd4fc380e9 /src/H5F.c | |
parent | c05a5a49c8d37ac216c1d1c7c4c98ea04a60f8a5 (diff) | |
download | hdf5-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.c | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -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() */ |