summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCsaba Henk <csaba@redhat.com>2012-02-27 05:40:58 +0100
committerVijay Bellur <vijay@gluster.com>2012-02-27 02:15:51 -0800
commit20b50008c710c973ebb0a84506b55e6aea044fad (patch)
tree328686191c9fd4da4ed0ed1daaa5066cbe0fc589
parent728de5be7ce2975efb59bb5928fd7261d5ec7760 (diff)
libglusterfs: fix GF_FREE
Argument-taking macros should be possible to use with same syntax that of C functions. In particular (assuming FOO is a single-argument macro), FOO(bar) should break and if (cond) FOO(bar); else baz(); should compile. Change-Id: If852c128a7317dc0dda1c669be7c6af40501e48d BUG: 762061 Signed-off-by: Csaba Henk <csaba@redhat.com> Reviewed-on: http://review.gluster.com/2816 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amarts@redhat.com>
-rw-r--r--libglusterfs/src/mem-pool.h2
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-handler.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libglusterfs/src/mem-pool.h b/libglusterfs/src/mem-pool.h
index a23b122022e..b9255eae930 100644
--- a/libglusterfs/src/mem-pool.h
+++ b/libglusterfs/src/mem-pool.h
@@ -116,7 +116,7 @@ void* __gf_default_realloc (void *oldptr, size_t size)
#define GF_REALLOC(ptr, size) __gf_realloc (ptr, size)
-#define GF_FREE(free_ptr) __gf_free (free_ptr);
+#define GF_FREE(free_ptr) __gf_free (free_ptr)
static inline
char * gf_strdup (const char *src)
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c
index 2e5825e8538..b87c2cd8ec9 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
@@ -2344,7 +2344,7 @@ glusterd_xfer_friend_add_resp (rpcsvc_request_t *req, char *hostname, int port,
gf_log ("glusterd", GF_LOG_INFO,
"Responded to %s (%d), ret: %d", hostname, port, ret);
if (rsp.hostname)
- GF_FREE (rsp.hostname)
+ GF_FREE (rsp.hostname);
return ret;
}