diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-07-09 14:34:35 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-07-09 14:34:35 (GMT) |
commit | 4fe4a51818747e067919c5d9b043395a2f4d04dc (patch) | |
tree | c300d737bfb6e5f1d2c09f90f60d87ea104018d7 /src/H5FL.c | |
parent | 5fbe02e72106b53e7dcad898984255b92190b476 (diff) | |
download | hdf5-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.c | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -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() */ |