diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2008-07-16 15:13:16 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2008-07-16 15:13:16 (GMT) |
commit | d7742a935424e3d694fb034265dff073d4510a7a (patch) | |
tree | 9f52aab6e60f7df027daec299d57f9a95b06d6df /src | |
parent | f7547f2db7bbd2f4717586d2c537d2d929bbab63 (diff) | |
download | hdf5-d7742a935424e3d694fb034265dff073d4510a7a.zip hdf5-d7742a935424e3d694fb034265dff073d4510a7a.tar.gz hdf5-d7742a935424e3d694fb034265dff073d4510a7a.tar.bz2 |
[svn-r15374] Description:
Correct wrong error return value to avoid compiler warning
Tested on:
Just eyeballed, extremely minor
Diffstat (limited to 'src')
-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) |