summaryrefslogtreecommitdiff
path: root/src/Xdbe.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-06-10 16:16:22 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-06-10 16:19:39 -0700
commitbba869e4ff5826d48ea409b4a8bf4ff7ad414453 (patch)
tree1aacbe49fbbb631e26d68e9d0687e38a347241f3 /src/Xdbe.c
parentace42fef753c1444cfc208da6bb282abbbc279ab (diff)
downloadxorg-lib-libXext-bba869e4ff5826d48ea409b4a8bf4ff7ad414453.tar.gz
Remove unnecessary (char *) casts from Xfree() arguments
These also haven't been needed since C89 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/Xdbe.c')
-rw-r--r--src/Xdbe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Xdbe.c b/src/Xdbe.c
index 71d41af..5c27a01 100644
--- a/src/Xdbe.c
+++ b/src/Xdbe.c
@@ -372,14 +372,14 @@ XdbeScreenVisualInfo *XdbeGetVisualInfo (
scrVisInfo[i].visinfo = NULL;
/* if we can not allocate the list of visual/depth info
- * then free the lists that we already allocate as well
+ * then free the lists that we already allocated as well
* as the visual info list itself
*/
if (scrVisInfo[i].visinfo == NULL) {
for (j = 0; j < i; j++) {
- Xfree ((char *)scrVisInfo[j].visinfo);
+ Xfree (scrVisInfo[j].visinfo);
}
- Xfree ((char *)scrVisInfo);
+ Xfree (scrVisInfo);
_XEatDataWords(dpy, rep.length);
UnlockDisplay (dpy);
SyncHandle ();