summaryrefslogtreecommitdiffstats
path: root/src/H5RC.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2008-09-10 19:10:41 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2008-09-10 19:10:41 (GMT)
commitc465e18a68f2a77550d93366a5b6c8fac2e24502 (patch)
treebd3649f75f1507040b68d8e15c63333600816360 /src/H5RC.c
parent068620ea815d8590982069cfb6374e07d3c8e1e6 (diff)
downloadhdf5-c465e18a68f2a77550d93366a5b6c8fac2e24502.zip
hdf5-c465e18a68f2a77550d93366a5b6c8fac2e24502.tar.gz
hdf5-c465e18a68f2a77550d93366a5b6c8fac2e24502.tar.bz2
[svn-r15609] Description:
Omnibus compiler warning cleanup & some reformatting also. Tested on: Mac OS X/32 10.5.4 (amazon) Too minor to require h5committest
Diffstat (limited to 'src/H5RC.c')
-rw-r--r--src/H5RC.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/H5RC.c b/src/H5RC.c
index 25a08a5..49e26a8 100644
--- a/src/H5RC.c
+++ b/src/H5RC.c
@@ -99,29 +99,29 @@ done:
herr_t
H5RC_decr(H5RC_t *rc)
{
- herr_t ret_value=SUCCEED; /* Return value */
+ herr_t ret_value = SUCCEED; /* Return value */
- FUNC_ENTER_NOAPI(H5RC_decr,FAIL);
+ FUNC_ENTER_NOAPI(H5RC_decr, FAIL)
/* Sanity check */
HDassert(rc);
HDassert(rc->o);
- HDassert(rc->n>0);
+ HDassert(rc->n > 0);
HDassert(rc->free_func);
/* Decrement reference count */
rc->n--;
/* Check if we should delete this object now */
- if(rc->n==0) {
- if((rc->free_func)(rc->o)<0) {
- H5FL_FREE(H5RC_t,rc);
- HGOTO_ERROR(H5E_RS,H5E_CANTFREE,FAIL,"memory release failed");
+ if(rc->n == 0) {
+ if((rc->free_func)(rc->o) < 0) {
+ (void)H5FL_FREE(H5RC_t, rc);
+ HGOTO_ERROR(H5E_RS, H5E_CANTFREE, FAIL, "memory release failed")
} /* end if */
- H5FL_FREE(H5RC_t,rc);
+ (void)H5FL_FREE(H5RC_t, rc);
} /* end if */
done:
- FUNC_LEAVE_NOAPI(ret_value);
+ FUNC_LEAVE_NOAPI(ret_value)
} /* end H5RC_decr() */