summaryrefslogtreecommitdiff
path: root/xfixes
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2008-02-05 15:44:41 -0500
committerEamon <ewalsh@tycho.nsa.gov>2008-02-05 15:48:40 -0500
commit019ad5acd20e34dc2aa3b89cc426138db5164c48 (patch)
tree2201086aae4bbcffb9baeee3910401a038cc27d7 /xfixes
parentd3c36fe721edc55636438bc3e0e7a6c03f62784e (diff)
XFixes: squash a pointer/integer size mismatch warning.
Diffstat (limited to 'xfixes')
-rwxr-xr-xxfixes/cursor.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xfixes/cursor.c b/xfixes/cursor.c
index 1d122faea..d51251f19 100755
--- a/xfixes/cursor.c
+++ b/xfixes/cursor.c
@@ -707,7 +707,8 @@ SProcXFixesChangeCursor (ClientPtr client)
static Bool
TestForCursorName (CursorPtr pCursor, pointer closure)
{
- return (pCursor->name == (Atom) closure);
+ Atom *pName = closure;
+ return (pCursor->name == *pName);
}
int
@@ -724,7 +725,7 @@ ProcXFixesChangeCursorByName (ClientPtr client)
tchar = (char *) &stuff[1];
name = MakeAtom (tchar, stuff->nbytes, FALSE);
if (name)
- ReplaceCursor (pSource, TestForCursorName, (pointer) name);
+ ReplaceCursor (pSource, TestForCursorName, &name);
return (client->noClientException);
}