From d8ec29ae63b2efeed5da3252b4e468e07f9de4a8 Mon Sep 17 00:00:00 2001 From: Prasanna Kumar Kalever Date: Fri, 26 Feb 2016 19:34:38 +0530 Subject: changelog: fix typecasting of function fix compiler error: "error: void value not ignored as it ought to be" while the code tries to typecast return type of 'LOCK_DESTROY(lock)' to (void) Change-Id: I38ed47f3a12719c7a4a59388c0d021858d4dfe6d BUG: 1312354 Signed-off-by: Prasanna Kumar Kalever Reviewed-on: http://review.gluster.org/13533 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Jeff Darcy --- xlators/features/changelog/src/changelog-rpc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xlators/features/changelog') diff --git a/xlators/features/changelog/src/changelog-rpc.c b/xlators/features/changelog/src/changelog-rpc.c index b07030ec28e..76addf18545 100644 --- a/xlators/features/changelog/src/changelog-rpc.c +++ b/xlators/features/changelog/src/changelog-rpc.c @@ -126,9 +126,9 @@ changelog_init_rpc_threads (xlator_t *this, changelog_priv_t *priv, cleanup_connector: (void) pthread_cancel (priv->connector); cleanup_wait_lock: - (void) LOCK_DESTROY (&conn->wait_lock); + LOCK_DESTROY (&conn->wait_lock); cleanup_active_lock: - (void) LOCK_DESTROY (&conn->active_lock); + LOCK_DESTROY (&conn->active_lock); cleanup_pending_cond: (void) pthread_cond_destroy (&conn->pending_cond); cleanup_pending_lock: @@ -183,7 +183,7 @@ changelog_rpc_clnt_cleanup (changelog_rpc_clnt_t *crpc) if (!crpc) return; crpc->c_clnt = NULL; - (void) LOCK_DESTROY (&crpc->lock); + LOCK_DESTROY (&crpc->lock); GF_FREE (crpc); } -- cgit