mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-14 21:28:07 +02:00
XFixes: squash a pointer/integer size mismatch warning.
This commit is contained in:
parent
d3c36fe721
commit
019ad5acd2
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue