diff options
author | Niels de Vos <ndevos@redhat.com> | 2015-07-17 12:09:55 +0200 |
---|---|---|
committer | Niels de Vos <ndevos@redhat.com> | 2015-07-23 07:33:03 -0700 |
commit | 8f2c7e67a8fa9cbf9f3b62ab0de930d921e3d362 (patch) | |
tree | 0aebd95712d0c1406652aebd0e294cf18e303372 /xlators/features/changelog/src/changelog-helpers.c | |
parent | 4703fc724a5b5070fa0fce5204015faaf38858f1 (diff) |
build: drop incorrect usage of 'inline'
Newer versions of gcc complain loudly about the incorrect usage of
'inline'.
These changes have been part of commit a3cb38e3 in other branches. There
is no need to backport everything from that commit, but silencing the
warnings would be good.
Change-Id: I2319d9682b47e8533e9c179056a5152f75aeddc3
BUG: 1244147
Signed-off-by: Niels de Vos <ndevos@redhat.com>
Reviewed-on: http://review.gluster.org/11711
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Diffstat (limited to 'xlators/features/changelog/src/changelog-helpers.c')
-rw-r--r-- | xlators/features/changelog/src/changelog-helpers.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xlators/features/changelog/src/changelog-helpers.c b/xlators/features/changelog/src/changelog-helpers.c index 91c43a16c86..d37680b3df5 100644 --- a/xlators/features/changelog/src/changelog-helpers.c +++ b/xlators/features/changelog/src/changelog-helpers.c @@ -50,7 +50,7 @@ changelog_thread_cleanup (xlator_t *this, pthread_t thr_id) return; } -inline void * +void * changelog_get_usable_buffer (changelog_local_t *local) { changelog_log_data_t *cld = NULL; @@ -65,7 +65,7 @@ changelog_get_usable_buffer (changelog_local_t *local) return cld->cld_iobuf->ptr; } -inline void +void changelog_set_usable_record_and_length (changelog_local_t *local, size_t len, int xr) { @@ -105,7 +105,7 @@ changelog_local_cleanup (xlator_t *xl, changelog_local_t *local) mem_put (local); } -inline int +int changelog_write (int fd, char *buffer, size_t len) { ssize_t size = 0; @@ -237,7 +237,7 @@ changelog_start_next_change (xlator_t *this, /** * return the length of entry */ -inline size_t +size_t changelog_entry_length () { return sizeof (changelog_log_data_t); @@ -264,7 +264,7 @@ changelog_write_change (changelog_priv_t *priv, char *buffer, size_t len) return changelog_write (priv->changelog_fd, buffer, len); } -inline int +int changelog_handle_change (xlator_t *this, changelog_priv_t *priv, changelog_log_data_t *cld) { @@ -639,7 +639,7 @@ changelog_inode_ctx_get (xlator_t *this, * then there is no need to record an update (as the equality of the two version * signifies an update was recorded in the current time slice). */ -inline void +void changelog_update (xlator_t *this, changelog_priv_t *priv, changelog_local_t *local, changelog_log_type type) { |