From f6f1b35de108e089dbd7fbadf3632bc9dff992f5 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Tue, 30 Jun 2009 17:48:59 +0000 Subject: build warning fixes integer typecast warnings fixed Signed-off-by: Anand V. Avati --- xlators/protocol/client/src/client-protocol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators') 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", -- cgit