aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/cmsCmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/lib/X11/cmsCmap.c')
-rw-r--r--nx-X11/lib/X11/cmsCmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nx-X11/lib/X11/cmsCmap.c b/nx-X11/lib/X11/cmsCmap.c
index 00816ce03..45843e3b8 100644
--- a/nx-X11/lib/X11/cmsCmap.c
+++ b/nx-X11/lib/X11/cmsCmap.c
@@ -250,7 +250,7 @@ _XcmsAddCmapRec(
{
XcmsCmapRec *pNew;
- if ((pNew = (XcmsCmapRec *) Xcalloc(1, (unsigned) sizeof(XcmsCmapRec)))
+ if ((pNew = Xcalloc(1, (unsigned) sizeof(XcmsCmapRec)))
== NULL) {
return((XcmsCmapRec *)NULL);
}
@@ -301,7 +301,7 @@ _XcmsCopyCmapRecAndFree(
pRec_copy =_XcmsAddCmapRec(dpy, copy_cmap, pRec_src->windowID,
pRec_src->visual);
if (pRec_copy != NULL && pRec_src->ccc) {
- pRec_copy->ccc = (XcmsCCC)Xcalloc(1, (unsigned) sizeof(XcmsCCCRec));
+ pRec_copy->ccc = Xcalloc(1, (unsigned) sizeof(XcmsCCCRec));
memcpy((char *)pRec_copy->ccc, (char *)pRec_src->ccc,
sizeof(XcmsCCCRec));
}