diff options
author | Amar Tumballi <amar@gluster.com> | 2009-06-30 17:48:59 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-06-30 16:33:45 -0700 |
commit | f6f1b35de108e089dbd7fbadf3632bc9dff992f5 (patch) | |
tree | c9a83cf458022eb7bef06bd26e01b98de2015e84 | |
parent | 095caa8feb992459781c992c843f34c98c5bd607 (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.c | 4 |
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 d37fdf13d..d3ad32237 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", |