summaryrefslogtreecommitdiffstats
path: root/xlators/meta/src/meta-helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/meta/src/meta-helpers.c')
-rw-r--r--xlators/meta/src/meta-helpers.c8
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;
}