summaryrefslogtreecommitdiffstats
path: root/src/H5FL.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/H5FL.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/H5FL.c')
-rw-r--r--src/H5FL.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/H5FL.c b/src/H5FL.c
index 8237a60..93fc902 100644
--- a/src/H5FL.c
+++ b/src/H5FL.c
@@ -1662,18 +1662,24 @@ printf("H5FL_arr_term: head->name=%s, head->allocated=%d\n", H5FL_arr_gc_head.fi
herr_t
H5FL_garbage_coll(void)
{
+ herr_t ret_value = SUCCEED;
+
FUNC_ENTER_NOINIT(H5FL_garbage_coll);
/* Garbage collect the free lists for array objects */
- H5FL_arr_gc();
+ if(H5FL_arr_gc()<0)
+ HGOTO_ERROR(H5E_RESOURCE, H5E_CANTGC, FAIL, "can't garbage collect array objects")
/* Garbage collect free lists for blocks */
- H5FL_blk_gc();
+ if(H5FL_blk_gc()<0)
+ HGOTO_ERROR(H5E_RESOURCE, H5E_CANTGC, FAIL, "can't garbage collect block objects")
/* Garbage collect the free lists for regular objects */
- H5FL_reg_gc();
+ if(H5FL_reg_gc()<0)
+ HGOTO_ERROR(H5E_RESOURCE, H5E_CANTGC, FAIL, "can't garbage collect regular objects")
- FUNC_LEAVE_NOAPI(SUCCEED);
+done:
+ FUNC_LEAVE_NOAPI(ret_value);
} /* end H5FL_garbage_coll() */