diff options
author | Xavi Hernandez <xhernandez@redhat.com> | 2018-09-25 13:22:47 +0200 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-10-10 05:50:29 +0000 |
commit | 2d96ce8faa277809c0c94aca54320483889f577d (patch) | |
tree | 999ef8b148b186e6bf74bb22c3ff670fc6e34d38 /xlators/meta | |
parent | 0cda00f08d3d620be89830bad9d0e252648388e9 (diff) |
all: fix warnings on non 64-bits architectures
When compiling in other architectures there appear many warnings. Some
of them are actual problems that prevent gluster to work correctly on
those architectures.
Change-Id: Icdc7107a2bc2da662903c51910beddb84bdf03c0
fixes: bz#1632717
Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
Diffstat (limited to 'xlators/meta')
-rw-r--r-- | xlators/meta/src/meta-helpers.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xlators/meta/src/meta-helpers.c b/xlators/meta/src/meta-helpers.c index 08a3016f640..d7d59c71296 100644 --- a/xlators/meta/src/meta-helpers.c +++ b/xlators/meta/src/meta-helpers.c @@ -31,7 +31,7 @@ meta_fd_get(fd_t *fd, xlator_t *this) __fd_ctx_set(fd, this, value); } } else { - meta_fd = (void *)value; + meta_fd = (void *)(uintptr_t)value; } } unlock: @@ -48,7 +48,7 @@ meta_fd_release(fd_t *fd, xlator_t *this) int i = 0; fd_ctx_get(fd, this, &value); - meta_fd = (void *)value; + meta_fd = (void *)(uintptr_t)value; if (meta_fd && meta_fd->dirents) { for (i = 0; i < meta_fd->size; i++) @@ -71,7 +71,7 @@ meta_ops_get(inode_t *inode, xlator_t *this) inode_ctx_get2(inode, this, NULL, &value); - ops = (void *)value; + ops = (void *)(uintptr_t)value; return ops; } @@ -111,7 +111,7 @@ meta_ctx_get(inode_t *inode, xlator_t *this) inode_ctx_get2(inode, this, &value, 0); - ctx = (void *)value; + ctx = (void *)(uintptr_t)value; return ctx; } |