diff options
author | Shehjar Tikoo <shehjart@zresearch.com> | 2009-04-17 02:33:01 -0700 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-04-17 15:06:29 +0530 |
commit | 4e3eae6561b38b53bef2d20177ab62602db45c14 (patch) | |
tree | b0adc4c8a5351a365d792ef5da871a8aeae12b4f /libglusterfsclient | |
parent | 4a632ea96be3012c583165865bbde392f99a327b (diff) |
libglusterfsclient: Fix typecast to fix build warning
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'libglusterfsclient')
-rwxr-xr-x | libglusterfsclient/src/libglusterfsclient.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c index bf4c25704..fb9c307b4 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; |