diff options
Diffstat (limited to 'Xext/mbufbf.c')
-rw-r--r-- | Xext/mbufbf.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Xext/mbufbf.c b/Xext/mbufbf.c index 877ccaabd..7d9d60a4f 100644 --- a/Xext/mbufbf.c +++ b/Xext/mbufbf.c @@ -221,7 +221,7 @@ bufMultibufferInit(pScreen, pMBScreen) pMBScreen->WrapScreenFuncs = bufWrapScreenFuncs; pMBScreen->ResetProc = bufResetProc; /* Create devPrivate part */ - pMBPriv = (mbufBufferPrivPtr) xalloc(sizeof *pMBPriv); + pMBPriv = xalloc(sizeof *pMBPriv); if (!pMBPriv) return (FALSE); @@ -611,8 +611,7 @@ bufDrawSelectPlane(pScreen, selectPlane, prgn, bufferNum) if (!pGC) return; - prect = (xRectangle *)xalloc(REGION_NUM_RECTS(prgn) * - sizeof(xRectangle)); + prect = xalloc(REGION_NUM_RECTS(prgn) * sizeof(xRectangle)); if (!prect) { FreeScratchGC(pGC); |