summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-11-21 11:29:44 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-11-21 11:29:44 -0800
commit8a10ff647b795b778af58037a8cbc23a03289e9a (patch)
tree2f9b187363bc1b8fe4277ca0159aa1c2d768c5d2
parentc0c02375b5a319fffe98b8f80ac3c25a8ab3e362 (diff)
Remove unnecessary casts from malloc() and free() calls
Not needed in C89 and later Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/Xcomposite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Xcomposite.c b/src/Xcomposite.c
index 359cd08..c5127e7 100644
--- a/src/Xcomposite.c
+++ b/src/Xcomposite.c
@@ -83,7 +83,7 @@ XCompositeExtRemoveDisplay (XCompositeExtInfo *extinfo, const Display *dpy)
if (info == extinfo->cur) extinfo->cur = NULL; /* flush cache */
_XUnlockMutex(_Xglobal_lock);
- Xfree ((char *) info);
+ Xfree (info);
return 1;
}
@@ -104,7 +104,7 @@ XCompositeExtAddDisplay (XCompositeExtInfo *extinfo,
{
XCompositeExtDisplayInfo *info;
- info = (XCompositeExtDisplayInfo *) Xmalloc (sizeof (XCompositeExtDisplayInfo));
+ info = Xmalloc (sizeof (XCompositeExtDisplayInfo));
if (!info) return NULL;
info->display = dpy;