summaryrefslogtreecommitdiff
path: root/src/CvtCache.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-08-06 15:17:27 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-08-06 16:20:43 -0700
commit05ee465685aba409800523c6615392a867366818 (patch)
tree6fb35f10308bd937bf06bf4a0296730d8f67a69b /src/CvtCache.c
parentf84dcc7fef5e0842e6408f059c13d73975114ec4 (diff)
downloadxorg-lib-libXmu-05ee465685aba409800523c6615392a867366818.tar.gz
Remove unnnecessary casts from *alloc() and free() calls
These are not needed in C89 and later. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/CvtCache.c')
-rw-r--r--src/CvtCache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CvtCache.c b/src/CvtCache.c
index 921b51a..0b1941f 100644
--- a/src/CvtCache.c
+++ b/src/CvtCache.c
@@ -106,7 +106,7 @@ _XmuCCLookupDisplay(Display *dpy)
*/
e = XmuDQLookupDisplay (dq, dpy); /* see if it's there */
if (!e) { /* else create it */
- XmuCvtCache *c = (XmuCvtCache *) malloc (sizeof (XmuCvtCache));
+ XmuCvtCache *c = malloc (sizeof (XmuCvtCache));
if (!c) return NULL;
/*
@@ -114,7 +114,7 @@ _XmuCCLookupDisplay(Display *dpy)
*/
e = XmuDQAddDisplay (dq, dpy, (XPointer) c);
if (!e) {
- free ((char *) c);
+ free (c);
return NULL;
}