diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2008-07-16 15:11:50 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2008-07-16 15:11:50 (GMT) |
commit | 583eac5e6de3ce20009de56859cde08de68451e6 (patch) | |
tree | fa2f915e3abcd2fa058d5a72e02191191bcb6325 /src/H5Gdeprec.c | |
parent | f21b99b592bfbe09732fb95bba53daea414b93a4 (diff) | |
download | hdf5-583eac5e6de3ce20009de56859cde08de68451e6.zip hdf5-583eac5e6de3ce20009de56859cde08de68451e6.tar.gz hdf5-583eac5e6de3ce20009de56859cde08de68451e6.tar.bz2 |
[svn-r15373] Description:
Correct wrong error return value to avoid compiler warning
Tested on:
Just eyeballed, extremely minor
Diffstat (limited to 'src/H5Gdeprec.c')
-rw-r--r-- | src/H5Gdeprec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5Gdeprec.c b/src/H5Gdeprec.c index 01c4edb..16531a7 100644 --- a/src/H5Gdeprec.c +++ b/src/H5Gdeprec.c @@ -1104,13 +1104,13 @@ H5Gget_objtype_by_idx(hid_t loc_id, hsize_t idx) if(H5G_loc(loc_id, &loc) < 0) HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, H5G_UNKNOWN, "not a location ID") if(H5O_obj_type(loc.oloc, &obj_type, H5AC_ind_dxpl_id) < 0) - HGOTO_ERROR(H5E_SYM, H5E_CANTGET, FAIL, "can't get object type") + HGOTO_ERROR(H5E_SYM, H5E_CANTGET, H5G_UNKNOWN, "can't get object type") if(obj_type != H5O_TYPE_GROUP) - HGOTO_ERROR(H5E_SYM, H5E_BADTYPE, FAIL, "not a group") + HGOTO_ERROR(H5E_SYM, H5E_BADTYPE, H5G_UNKNOWN, "not a group") /* Call internal function*/ if((ret_value = H5G_obj_get_type_by_idx(loc.oloc, idx, H5AC_ind_dxpl_id)) == H5G_UNKNOWN) - HGOTO_ERROR(H5E_SYM, H5E_BADTYPE, FAIL, "can't get object type") + HGOTO_ERROR(H5E_SYM, H5E_BADTYPE, H5G_UNKNOWN, "can't get object type") done: FUNC_LEAVE_API(ret_value) |