diff options
author | Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | 2016-02-26 19:34:38 +0530 |
---|---|---|
committer | Jeff Darcy <jdarcy@redhat.com> | 2016-03-17 08:22:13 -0700 |
commit | d8ec29ae63b2efeed5da3252b4e468e07f9de4a8 (patch) | |
tree | 8ca1570a89a5914af3b7b62548fb5b97a23ced10 /xlators/features | |
parent | a6aecae2cd8171b8538bfe5d2800bdd157380b85 (diff) | |
download | glusterfs-d8ec29ae63b2efeed5da3252b4e468e07f9de4a8.tar.gz glusterfs-d8ec29ae63b2efeed5da3252b4e468e07f9de4a8.tar.xz glusterfs-d8ec29ae63b2efeed5da3252b4e468e07f9de4a8.zip |
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 <prasanna.kalever@redhat.com>
Reviewed-on: http://review.gluster.org/13533
Smoke: Gluster Build System <jenkins@build.gluster.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'xlators/features')
-rw-r--r-- | xlators/features/changelog/src/changelog-rpc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xlators/features/changelog/src/changelog-rpc.c b/xlators/features/changelog/src/changelog-rpc.c index b07030ec28..76addf1854 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); } |