diff options
author | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2014-07-22 17:57:03 (GMT) |
---|---|---|
committer | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2014-07-22 17:57:03 (GMT) |
commit | a487ca20d961937e39f7f46b183f1be1c33022d4 (patch) | |
tree | 80c4fc2c73b614580db86d04bbd0b4494c7c0ed8 /src/H5Toh.c | |
parent | ad8de00a0e61dce379f2eb9d424924aad63fe7bc (diff) | |
download | hdf5-a487ca20d961937e39f7f46b183f1be1c33022d4.zip hdf5-a487ca20d961937e39f7f46b183f1be1c33022d4.tar.gz hdf5-a487ca20d961937e39f7f46b183f1be1c33022d4.tar.bz2 |
[svn-r25464] more alignment with trunk.
Diffstat (limited to 'src/H5Toh.c')
-rw-r--r-- | src/H5Toh.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/H5Toh.c b/src/H5Toh.c index 99cb396..2c6dacf 100644 --- a/src/H5Toh.c +++ b/src/H5Toh.c @@ -29,8 +29,7 @@ #include "H5Iprivate.h" /* IDs */ #include "H5Opkg.h" /* Object headers */ #include "H5Tpkg.h" /* Datatypes */ -#include "H5VLnative.h" /* Native Plugin */ -#include "H5VLprivate.h" /* VOL */ + /****************/ /* Local Macros */ @@ -133,26 +132,26 @@ done: static hid_t H5O_dtype_open(const H5G_loc_t *obj_loc, hid_t UNUSED lapl_id, hid_t dxpl_id, hbool_t app_ref) { - H5T_t *dt = NULL; /* Datatype opened */ - hid_t ret_value; /* Return value */ + H5T_t *type = NULL; /* Datatype opened */ + hid_t ret_value; /* Return value */ FUNC_ENTER_NOAPI_NOINIT HDassert(obj_loc); /* Open the datatype */ - if(NULL == (dt = H5T_open(obj_loc, dxpl_id))) + if(NULL == (type = H5T_open(obj_loc, dxpl_id))) HGOTO_ERROR(H5E_DATATYPE, H5E_CANTOPENOBJ, FAIL, "unable to open datatype") /* Register an ID for the datatype */ - if((ret_value = H5I_register(H5I_DATATYPE, dt, app_ref)) < 0) + if((ret_value = H5I_register(H5I_DATATYPE, type, app_ref)) < 0) HGOTO_ERROR(H5E_ATOM, H5E_CANTREGISTER, FAIL, "unable to register datatype") done: - if(ret_value < 0) { - if(dt && H5T_close(dt) < 0) - HDONE_ERROR(H5E_DATASET, H5E_CLOSEERROR, FAIL, "unable to release datatype") - } + if(ret_value < 0) + if(type && H5T_close(type) < 0) + HDONE_ERROR(H5E_DATATYPE, H5E_CLOSEERROR, FAIL, "unable to release datatype") + FUNC_LEAVE_NOAPI(ret_value) } /* end H5O_dtype_open() */ |