diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-12-29 19:01:04 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-12-29 19:01:04 (GMT) |
commit | 51984a99264fdee6bef4ec9eaa9bc065ff40c530 (patch) | |
tree | d79c277b6a187b719b15041369beec91f578f484 /src/H5I.c | |
parent | 92a75f970e7194aa6be067cdf6f11e10a296dc9c (diff) | |
download | hdf5-51984a99264fdee6bef4ec9eaa9bc065ff40c530.zip hdf5-51984a99264fdee6bef4ec9eaa9bc065ff40c530.tar.gz hdf5-51984a99264fdee6bef4ec9eaa9bc065ff40c530.tar.bz2 |
[svn-r7988] Purpose:
Bug fixes & code cleanup
Description:
Back out some of the debugging that was inadvertently checked in recently.
Platforms tested:
FreeBSD 4.9 (sleipnir)
too minor to require h5committest
Diffstat (limited to 'src/H5I.c')
-rw-r--r-- | src/H5I.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -117,6 +117,8 @@ H5FL_DEFINE_STATIC(H5I_id_info_t); /*--------------------- Local function prototypes ---------------------------*/ static herr_t H5I_init_interface(void); static H5I_id_info_t *H5I_find_id(hid_t id); +static hid_t H5I_get_file_id(hid_t obj_id); +static int H5I_get_ref(hid_t id); #ifdef H5I_DEBUG_OUTPUT static herr_t H5I_debug(H5I_type_t grp); #endif /* H5I_DEBUG_OUTPUT */ @@ -842,7 +844,7 @@ done: * *------------------------------------------------------------------------- */ -hid_t +static hid_t H5I_get_file_id(hid_t obj_id) { H5G_entry_t *ent; @@ -1343,11 +1345,8 @@ H5I_find_id(hid_t id) /* Check arguments */ grp = H5I_GRP(id); - - if (grp <= H5I_BADID || grp >= H5I_NGROUPS) { + if (grp <= H5I_BADID || grp >= H5I_NGROUPS) HGOTO_ERROR(H5E_ARGS, H5E_BADRANGE, NULL, "invalid group number"); - } - grp_ptr = H5I_id_group_list_g[grp]; if (grp_ptr == NULL || grp_ptr->count <= 0) HGOTO_ERROR(H5E_ATOM, H5E_BADGROUP, NULL, "invalid group"); |