mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-01 22:03:09 +00:00
Remove a bunch of useless casts.
We've had void * for twenty years now people let's try to act like we know how it works.
This commit is contained in:
parent
0fb4390526
commit
132b464d73
72 changed files with 343 additions and 376 deletions
|
|
@ -1131,7 +1131,7 @@ EnqueueEvent(xEvent *xE, DeviceIntPtr device, int count)
|
|||
if (xE->u.u.type == GenericEvent) /* count is 1 for GenericEvents */
|
||||
eventlen += ((xGenericEvent*)xE)->length * 4;
|
||||
|
||||
qe = (QdEventPtr)xalloc(sizeof(QdEventRec) + eventlen);
|
||||
qe = xalloc(sizeof(QdEventRec) + eventlen);
|
||||
if (!qe)
|
||||
return;
|
||||
qe->next = (QdEventPtr)NULL;
|
||||
|
|
@ -3824,7 +3824,7 @@ EventSelectForWindow(WindowPtr pWin, ClientPtr client, Mask mask)
|
|||
check = 0;
|
||||
if (!pWin->optional && !MakeWindowOptional (pWin))
|
||||
return BadAlloc;
|
||||
others = (OtherClients *) xalloc(sizeof(OtherClients));
|
||||
others = xalloc(sizeof(OtherClients));
|
||||
if (!others)
|
||||
return BadAlloc;
|
||||
others->mask = mask;
|
||||
|
|
|
|||
Loading…
Reference in a new issue