XFixes: squash a pointer/integer size mismatch warning.

This commit is contained in:
Eamon Walsh 2008-02-05 15:44:41 -05:00 committed by Eamon
parent d3c36fe721
commit 019ad5acd2

View File

@ -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);
}