diff options
Diffstat (limited to 'src/Xdamage.c')
-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; } |