mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-29 02:31:18 +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
|
|
@ -171,8 +171,7 @@ typedef struct _miBankQueue
|
|||
(*pScreenPriv->BankInfo.SetDestinationBank)(pScreen, (_no)) - \
|
||||
(pScreenPriv->BankInfo.BankSize * (_no)))
|
||||
|
||||
#define xalloc_ARRAY(atype, ntype) \
|
||||
(atype *)xalloc((ntype) * sizeof(atype))
|
||||
#define xalloc_ARRAY(atype, ntype) xalloc((ntype) * sizeof(atype))
|
||||
|
||||
static int miBankScreenKeyIndex;
|
||||
static DevPrivateKey miBankScreenKey = &miBankScreenKeyIndex;
|
||||
|
|
@ -955,7 +954,7 @@ miBankCopy(
|
|||
|
||||
paddedWidth = PixmapBytePad(maxWidth,
|
||||
pScreenPriv->pScreenPixmap->drawable.depth);
|
||||
pImage = (char *)xalloc(paddedWidth * maxHeight);
|
||||
pImage = xalloc(paddedWidth * maxHeight);
|
||||
|
||||
pGC->fExpose = FALSE;
|
||||
|
||||
|
|
@ -1750,7 +1749,7 @@ miBankGetImage(
|
|||
|
||||
paddedWidth = PixmapBytePad(w,
|
||||
pScreenPriv->pScreenPixmap->drawable.depth);
|
||||
pBankImage = (char *)xalloc(paddedWidth * h);
|
||||
pBankImage = xalloc(paddedWidth * h);
|
||||
|
||||
if (pBankImage)
|
||||
{
|
||||
|
|
@ -1811,7 +1810,7 @@ miBankGetSpans(
|
|||
paddedWidth =
|
||||
PixmapBytePad(pScreenPriv->pScreenPixmap->drawable.width,
|
||||
pScreenPriv->pScreenPixmap->drawable.depth);
|
||||
pBankImage = (char *)xalloc(paddedWidth);
|
||||
pBankImage = xalloc(paddedWidth);
|
||||
|
||||
if (pBankImage)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue