diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-11-17 10:55:07 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-11-17 11:26:01 -0800 |
commit | 90bb47685ed92df1eb5bbb9b6875a40f3e98bb43 (patch) | |
tree | 6fd16a5d17014a5e525045dee5e0ce35e9534015 /src | |
parent | 6e16a274610317abc3956291aa498b1ecdccc900 (diff) |
Remove unnecessary casts from malloc() and free() calls
Not needed in C89 and later
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/Xdamage.c | 4 |
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; } |