summaryrefslogtreecommitdiffstats
path: root/libglusterfsclient
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfsclient')
-rwxr-xr-xlibglusterfsclient/src/libglusterfsclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c
index bf4c257046c..fb9c307b473 100755
--- a/libglusterfsclient/src/libglusterfsclient.c
+++ b/libglusterfsclient/src/libglusterfsclient.c
@@ -152,7 +152,7 @@ libgf_alloc_fd_ctx (libglusterfs_client_ctx_t *ctx, fd_t *fd)
pthread_mutex_init (&fdctx->lock, NULL);
fdctx->ctx = ctx;
- ctxaddr = (uint64_t)fdctx;
+ ctxaddr = (uint64_t) (long)fdctx;
fd_ctx_set (fd, libgf_inode_to_xlator (fd->inode), ctxaddr);
@@ -239,7 +239,7 @@ libgf_alloc_inode_ctx (libglusterfs_client_ctx_t *ctx, inode_t *inode)
}
pthread_mutex_init (&ictx->lock, NULL);
- ctxaddr = (uint64_t)ictx;
+ ctxaddr = (uint64_t) (long)ictx;
if (inode_ctx_put (inode, libgf_inode_to_xlator (inode), ctxaddr) < 0){
FREE (ictx);
ictx = NULL;