summaryrefslogtreecommitdiff
path: root/miext
diff options
context:
space:
mode:
Diffstat (limited to 'miext')
-rw-r--r--miext/cw/cw.c2
-rw-r--r--miext/damage/damage.c4
-rw-r--r--miext/rootless/rootlessValTree.c2
-rw-r--r--miext/shadow/shadow.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/miext/cw/cw.c b/miext/cw/cw.c
index 56066fe9c..74000ffa0 100644
--- a/miext/cw/cw.c
+++ b/miext/cw/cw.c
@@ -484,7 +484,7 @@ miInitializeCompositeWrapper(ScreenPtr pScreen)
if (!dixRequestPrivate(cwGCKey, sizeof(cwGCRec)))
return;
- pScreenPriv = (cwScreenPtr)xalloc(sizeof(cwScreenRec));
+ pScreenPriv = xalloc(sizeof(cwScreenRec));
if (!pScreenPriv)
return;
diff --git a/miext/damage/damage.c b/miext/damage/damage.c
index 9e0533fa5..ade67359a 100644
--- a/miext/damage/damage.c
+++ b/miext/damage/damage.c
@@ -1514,7 +1514,7 @@ damageText (DrawablePtr pDrawable,
imageblt = (textType == TT_IMAGE8) || (textType == TT_IMAGE16);
- charinfo = (CharInfoPtr *) xalloc(count * sizeof(CharInfoPtr));
+ charinfo = xalloc(count * sizeof(CharInfoPtr));
if (!charinfo)
return x;
@@ -1873,7 +1873,7 @@ DamageSetup (ScreenPtr pScreen)
if (!dixRequestPrivate(damageGCPrivateKey, sizeof(DamageGCPrivRec)))
return FALSE;
- pScrPriv = (DamageScrPrivPtr) xalloc (sizeof (DamageScrPrivRec));
+ pScrPriv = xalloc (sizeof (DamageScrPrivRec));
if (!pScrPriv)
return FALSE;
diff --git a/miext/rootless/rootlessValTree.c b/miext/rootless/rootlessValTree.c
index 47cd6790b..0ee4919e1 100644
--- a/miext/rootless/rootlessValTree.c
+++ b/miext/rootless/rootlessValTree.c
@@ -624,7 +624,7 @@ RootlessMiValidateTree (WindowPtr pRoot, /* Parent to validate */
if (pScreen->ClipNotify)
(* pScreen->ClipNotify) (pWin, 0, 0);
REGION_EMPTY( pScreen, &pWin->borderClip);
- pWin->valdata = (ValidatePtr)NULL;
+ pWin->valdata = NULL;
}
}
}
diff --git a/miext/shadow/shadow.c b/miext/shadow/shadow.c
index 21f1de2d5..5eea16bdf 100644
--- a/miext/shadow/shadow.c
+++ b/miext/shadow/shadow.c
@@ -139,7 +139,7 @@ shadowSetup(ScreenPtr pScreen)
if (!DamageSetup(pScreen))
return FALSE;
- pBuf = (shadowBufPtr) xalloc(sizeof(shadowBufRec));
+ pBuf = xalloc(sizeof(shadowBufRec));
if (!pBuf)
return FALSE;
#ifdef BACKWARDS_COMPATIBILITY