summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2009-06-30 17:48:59 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-06-30 16:33:45 -0700
commit88f907af098c2876ca8777783098dae9ad624540 (patch)
tree54f626ac77bb44c1346c72b051d6475bf0a1ad8e
parent9d16a33e6171adf7512df839af6f6ffbab96799c (diff)
build warning fixes
integer typecast warnings fixed Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
-rw-r--r--xlators/protocol/client/src/client-protocol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/protocol/client/src/client-protocol.c b/xlators/protocol/client/src/client-protocol.c
index d255107fc42..e6b47514684 100644
--- a/xlators/protocol/client/src/client-protocol.c
+++ b/xlators/protocol/client/src/client-protocol.c
@@ -105,7 +105,7 @@ this_fd_get_ctx (fd_t *file, xlator_t *this)
}
out:
- return (client_fd_ctx_t *)ctxaddr;
+ return (client_fd_ctx_t *)(unsigned long)ctxaddr;
}
@@ -125,7 +125,7 @@ this_fd_set_ctx (fd_t *file, xlator_t *this, loc_t *loc, client_fd_ctx_t *ctx)
loc->path, loc->inode->ino);
}
- ret = fd_ctx_set (file, this, (uint64_t)ctx);
+ ret = fd_ctx_set (file, this, (uint64_t)(unsigned long)ctx);
if (ret < 0) {
gf_log (this->name, GF_LOG_DEBUG,
"%s (%"PRId64"): failed to set remote fd",