summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-11-17 10:55:07 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-11-17 11:26:01 -0800
commit90bb47685ed92df1eb5bbb9b6875a40f3e98bb43 (patch)
tree6fd16a5d17014a5e525045dee5e0ce35e9534015
parent6e16a274610317abc3956291aa498b1ecdccc900 (diff)
downloadxorg-lib-libXdamage-90bb47685ed92df1eb5bbb9b6875a40f3e98bb43.tar.gz
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/Xdamage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Xdamage.c b/src/Xdamage.c
index 61fe4e6..55b1824 100644
--- a/src/Xdamage.c
+++ b/src/Xdamage.c
@@ -51,7 +51,7 @@ XDamageExtAddDisplay (XDamageExtInfo *extinfo,
{
XDamageExtDisplayInfo *info;
- info = (XDamageExtDisplayInfo *) Xmalloc (sizeof (XDamageExtDisplayInfo));
+ info = Xmalloc (sizeof (XDamageExtDisplayInfo));
if (!info) return NULL;
info->display = dpy;
@@ -155,7 +155,7 @@ XDamageExtRemoveDisplay (XDamageExtInfo *extinfo, const Display *dpy)
if (info == extinfo->cur) extinfo->cur = NULL; /* flush cache */
_XUnlockMutex(_Xglobal_lock);
- Xfree ((char *) info);
+ Xfree (info);
return 1;
}