From 4faeedc99284ce4e6b86bec39309b949fb5423ac Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Wed, 14 Nov 2012 12:23:36 +0530 Subject: "gcc -pedantic": made 'inline' functions as 'static inline' functions for passing the build with -pedantic flag Change-Id: I80fd9528321e4c6ea5bec32bf5cdc54cc4e4f65e BUG: 875913 Signed-off-by: Amar Tumballi Reviewed-on: http://review.gluster.org/4186 Reviewed-by: Jeff Darcy Tested-by: Gluster Build System Reviewed-by: Anand Avati --- libglusterfs/src/fd.h | 2 +- libglusterfs/src/rbthash.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'libglusterfs') diff --git a/libglusterfs/src/fd.h b/libglusterfs/src/fd.h index a70707bc1..e2f54bc9d 100644 --- a/libglusterfs/src/fd.h +++ b/libglusterfs/src/fd.h @@ -84,7 +84,7 @@ typedef struct _fdtable fdtable_t; #include "xlator.h" -inline void +void gf_fd_put (fdtable_t *fdtable, int32_t fd); diff --git a/libglusterfs/src/rbthash.c b/libglusterfs/src/rbthash.c index cced943a3..0d7b9e521 100644 --- a/libglusterfs/src/rbthash.c +++ b/libglusterfs/src/rbthash.c @@ -227,7 +227,7 @@ rbthash_deinit_entry (rbthash_table_t *tbl, rbthash_entry_t *entry) } -inline struct rbthash_bucket * +static inline struct rbthash_bucket * rbthash_entry_bucket (rbthash_table_t *tbl, rbthash_entry_t * entry) { int nbucket = 0; @@ -301,7 +301,7 @@ err: return ret; } -inline struct rbthash_bucket * +static inline struct rbthash_bucket * rbthash_key_bucket (rbthash_table_t *tbl, void *key, int keylen) { uint32_t keyhash = 0; -- cgit