From 8a10ff647b795b778af58037a8cbc23a03289e9a Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 21 Nov 2022 11:29:44 -0800 Subject: Remove unnecessary casts from malloc() and free() calls Not needed in C89 and later Signed-off-by: Alan Coopersmith --- src/Xcomposite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3