summaryrefslogtreecommitdiffstats
path: root/xlators/performance/open-behind
diff options
context:
space:
mode:
authorXavi Hernandez <xhernandez@redhat.com>2018-09-25 13:22:47 +0200
committerAmar Tumballi <amarts@redhat.com>2018-10-10 05:50:29 +0000
commit2d96ce8faa277809c0c94aca54320483889f577d (patch)
tree999ef8b148b186e6bf74bb22c3ff670fc6e34d38 /xlators/performance/open-behind
parent0cda00f08d3d620be89830bad9d0e252648388e9 (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/performance/open-behind')
-rw-r--r--xlators/performance/open-behind/src/open-behind.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xlators/performance/open-behind/src/open-behind.c b/xlators/performance/open-behind/src/open-behind.c
index c8f818717ef..8021fd07a2e 100644
--- a/xlators/performance/open-behind/src/open-behind.c
+++ b/xlators/performance/open-behind/src/open-behind.c
@@ -105,14 +105,14 @@ ob_inode_get(xlator_t *this, inode_t *inode)
if (ob_inode == NULL)
goto unlock;
- value = (uint64_t)((void *)ob_inode);
+ value = (uint64_t)(uintptr_t)ob_inode;
ret = __inode_ctx_set(inode, this, &value);
if (ret < 0) {
ob_inode_free(ob_inode);
ob_inode = NULL;
}
} else {
- ob_inode = (ob_inode_t *)value;
+ ob_inode = (ob_inode_t *)(uintptr_t)value;
}
}
unlock:
@@ -1109,7 +1109,7 @@ ob_forget(xlator_t *this, inode_t *inode)
inode_ctx_del(inode, this, &value);
if (value) {
- ob_inode = (ob_inode_t *)((void *)value);
+ ob_inode = (ob_inode_t *)(uintptr_t)value;
ob_inode_free(ob_inode);
}