Xi: silence two compiler warnings

chdevcur.c:97: warning: ‘SecurityLookupIDByType’ is deprecated (declared at
../include/resource.h:269)

xiproperty.c:200: warning: passing argument 2 of ‘GetEventFilter’ from
incompatible pointer type

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2009-05-22 15:24:46 +10:00
parent 4a36db6077
commit b395da91c5
2 changed files with 6 additions and 7 deletions

View File

@ -94,12 +94,10 @@ int ProcXIChangeCursor(ClientPtr client)
} }
else else
{ {
pCursor = (CursorPtr)SecurityLookupIDByType(client, stuff->cursor, rc = dixLookupResourceByType((pointer*)&pCursor, stuff->cursor,
RT_CURSOR, DixReadAccess); RT_CURSOR, client, DixReadAccess);
if (!pCursor) if (rc != Success)
{ return rc;
return BadCursor;
}
} }
ChangeWindowDeviceCursor(pWin, pDev, pCursor); ChangeWindowDeviceCursor(pWin, pDev, pCursor);

View File

@ -197,7 +197,8 @@ static void send_property_event(DeviceIntPtr dev, Atom property, int what)
xi2.time = currentTime.milliseconds; xi2.time = currentTime.milliseconds;
xi2.property = property; xi2.property = property;
xi2.what = what; xi2.what = what;
SendEventToAllWindows(dev, GetEventFilter(dev, &xi2), (xEvent*)&xi2, 1); SendEventToAllWindows(dev, GetEventFilter(dev, (xEvent*)&xi2),
(xEvent*)&xi2, 1);
} }
static int list_atoms(DeviceIntPtr dev, int *natoms, Atom **atoms_return) static int list_atoms(DeviceIntPtr dev, int *natoms, Atom **atoms_return)