summaryrefslogtreecommitdiff
path: root/src/Xrender.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-08-28 10:26:00 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-09-07 17:59:53 +0000
commitcc4ad7a3990826ca44470dbca3a5b03c35548cab (patch)
treef6144d593afacf6ae505b2add37998c7af4b4125 /src/Xrender.c
parent3b888fdf89b4d8f4712c28b340c28604c8ff0b7e (diff)
Remove unnecessary casts from malloc & free calls
These are not needed in C89 and later Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/Xrender.c')
-rw-r--r--src/Xrender.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Xrender.c b/src/Xrender.c
index 71cf3e6..20134a6 100644
--- a/src/Xrender.c
+++ b/src/Xrender.c
@@ -194,7 +194,7 @@ XRenderExtAddDisplay (XRenderExtInfo *extinfo,
{
XRenderExtDisplayInfo *dpyinfo;
- dpyinfo = (XRenderExtDisplayInfo *) Xmalloc (sizeof (XRenderExtDisplayInfo));
+ dpyinfo = Xmalloc (sizeof (XRenderExtDisplayInfo));
if (!dpyinfo) return NULL;
dpyinfo->display = dpy;
dpyinfo->info = NULL;
@@ -273,7 +273,7 @@ XRenderExtRemoveDisplay (XRenderExtInfo *extinfo, Display *dpy)
if (dpyinfo == extinfo->cur) extinfo->cur = NULL; /* flush cache */
_XUnlockMutex(_Xglobal_lock);
- Xfree ((char *) dpyinfo);
+ Xfree (dpyinfo);
return 1;
}