diff options
author | Csaba Henk <csaba@redhat.com> | 2012-02-27 05:40:58 +0100 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2012-02-27 02:15:51 -0800 |
commit | 20b50008c710c973ebb0a84506b55e6aea044fad (patch) | |
tree | 328686191c9fd4da4ed0ed1daaa5066cbe0fc589 /libglusterfs | |
parent | 728de5be7ce2975efb59bb5928fd7261d5ec7760 (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>
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/mem-pool.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/mem-pool.h b/libglusterfs/src/mem-pool.h index a23b12202..b9255eae9 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) |