summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-05-23 22:12:50 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-05-23 22:12:50 -0700
commit2d858f3bcfe9e3c9f56209624539df267e11a20c (patch)
tree5a361cd56c066e3f8c794757e547acec9aa44d5b
parent720758ac56ecb41e8156c7dae35d764fa926cd98 (diff)
Cast pointer to long instead of int
Matches the cast passed in ((pointer)(long) server->index on line 1276) Fixes gcc error: di/wire.c:1119:27: error: cast from pointer to integer of different size Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--di/wire.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/di/wire.c b/di/wire.c
index fdc6989..c5ef6fe 100644
--- a/di/wire.c
+++ b/di/wire.c
@@ -1116,7 +1116,7 @@ ProxyWorkProc(ClientPtr unused_client, pointer index)
XServerPtr server;
xLbxAllowMotionReq req;
- if ((server = servers[(int)index]) == 0)
+ if ((server = servers[(long)index]) == 0)
return TRUE;
if (!server->initialized)
return TRUE;