summaryrefslogtreecommitdiffstats
path: root/src/H5I.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-07-09 14:34:35 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-07-09 14:34:35 (GMT)
commit4fe4a51818747e067919c5d9b043395a2f4d04dc (patch)
treec300d737bfb6e5f1d2c09f90f60d87ea104018d7 /src/H5I.c
parent5fbe02e72106b53e7dcad898984255b92190b476 (diff)
downloadhdf5-4fe4a51818747e067919c5d9b043395a2f4d04dc.zip
hdf5-4fe4a51818747e067919c5d9b043395a2f4d04dc.tar.gz
hdf5-4fe4a51818747e067919c5d9b043395a2f4d04dc.tar.bz2
[svn-r7186] Purpose:
Code cleanup Description: More tweaks to clean up warnings from lint. Platforms tested: FreeBSD 4.8 (sleipnir) not major enough to h5committest
Diffstat (limited to 'src/H5I.c')
-rw-r--r--src/H5I.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/H5I.c b/src/H5I.c
index 4049843..7f255a3 100644
--- a/src/H5I.c
+++ b/src/H5I.c
@@ -403,7 +403,7 @@ H5I_clear_group(H5I_type_t grp, hbool_t force)
* Remove atoms from the global atom cache.
*/
for (i=0; i<ID_CACHE_SIZE; i++) {
- if (H5I_cache_g[i] && H5I_GROUP(H5I_cache_g[i]->id) == grp)
+ if (H5I_cache_g[i] && H5I_GRP(H5I_cache_g[i]->id) == grp)
H5I_cache_g[i] = NULL;
}
#endif /* IDS_ARE_CACHED */
@@ -740,7 +740,7 @@ H5I_object_verify(hid_t id, H5I_type_t id_type)
assert(id_type>=H5I_FILE && id_type<H5I_NGROUPS);
/* Verify that the group of the ID is correct & lookup the ID */
- if(id_type == H5I_GROUP(id) && NULL!=(id_ptr = H5I_find_id(id))) {
+ if(id_type == H5I_GRP(id) && NULL!=(id_ptr = H5I_find_id(id))) {
/* Get the object pointer to return */
ret_value = id_ptr->obj_ptr;
} /* end if */
@@ -777,7 +777,7 @@ H5I_get_type(hid_t id)
FUNC_ENTER_NOAPI(H5I_get_type, H5I_BADID);
if (id>0)
- ret_value = H5I_GROUP(id);
+ ret_value = H5I_GRP(id);
assert(ret_value>=H5I_BADID && ret_value<H5I_NGROUPS);
@@ -857,7 +857,7 @@ H5I_remove(hid_t id)
FUNC_ENTER_NOAPI(H5I_remove, NULL);
/* Check arguments */
- grp = H5I_GROUP(id);
+ grp = H5I_GRP(id);
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];
@@ -950,7 +950,7 @@ done:
int
H5I_dec_ref(hid_t id)
{
- H5I_type_t grp = H5I_GROUP(id); /*group the object is in*/
+ H5I_type_t grp = H5I_GRP(id); /*group the object is in*/
H5I_id_group_t *grp_ptr = NULL; /*ptr to the group */
H5I_id_info_t *id_ptr = NULL; /*ptr to the new ID */
int ret_value=FAIL; /*return value */
@@ -1011,7 +1011,7 @@ done:
int
H5I_inc_ref(hid_t id)
{
- H5I_type_t grp = H5I_GROUP(id); /*group the object is in*/
+ H5I_type_t grp = H5I_GRP(id); /*group the object is in*/
H5I_id_group_t *grp_ptr = NULL; /*ptr to the group */
H5I_id_info_t *id_ptr = NULL; /*ptr to the ID */
int ret_value; /* Return value */
@@ -1126,7 +1126,7 @@ H5I_find_id(hid_t id)
FUNC_ENTER_NOINIT(H5I_find_id);
/* Check arguments */
- grp = H5I_GROUP(id);
+ grp = H5I_GRP(id);
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];
@@ -1283,7 +1283,7 @@ H5I_debug(H5I_type_t grp)
/* Cache */
fprintf(stderr, " Cache:\n");
for (is=0; is<ID_CACHE_SIZE; is++) {
- if (H5I_cache_g[is] && H5I_GROUP(H5I_cache_g[is]->id)==grp) {
+ if (H5I_cache_g[is] && H5I_GRP(H5I_cache_g[is]->id)==grp) {
fprintf(stderr, " Entry-%d, ID=%lu\n",
is, (unsigned long)(H5I_cache_g[is]->id));
}