summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/refcount.h
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2017-03-14 15:38:39 +0100
committerJeff Darcy <jeff@pl.atyp.us>2017-03-21 21:00:17 -0400
commita1d60fe4e9ba46e2f472170e65043f5735af1fd5 (patch)
treeed1062ef483984670df12b17612db4a61615f70c /libglusterfs/src/refcount.h
parent0cf2963f12a8b540a7042605d8c79f638fdf6cee (diff)
refcount: correct the return value of GF_REF_PUT()
It is documented that GF_REF_PUT() returns a 0 in case the call resulted in free'ing the structure. However the implementations did not have a return value, so nothing can actually use it. Change-Id: Ic57091f5ddd7e0b80929dc335a5b6d37f5fe1b2e BUG: 1433405 Signed-off-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: https://review.gluster.org/16910 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Xavier Hernandez <xhernandez@datalab.es> Reviewed-by: Jeff Darcy <jeff@pl.atyp.us> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Diffstat (limited to 'libglusterfs/src/refcount.h')
-rw-r--r--libglusterfs/src/refcount.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/refcount.h b/libglusterfs/src/refcount.h
index 583b75cf8c2..4ae37fecbfe 100644
--- a/libglusterfs/src/refcount.h
+++ b/libglusterfs/src/refcount.h
@@ -50,7 +50,7 @@ _gf_ref_get (gf_ref_t *ref);
* @return: greater then 0 when there are still references, 0 when cleanup
* should be done, gf_ref_release_t is called on cleanup
*/
-void
+unsigned int
_gf_ref_put (gf_ref_t *ref);
/* _gf_ref_init -- initalize an embedded refcount object