summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-08-18 10:18:21 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-08-18 10:18:21 -0700
commit58f3c3b8d518786764f45ac2be1f1f0850129125 (patch)
treedb01e99d81fe6120d5a9311c2d0fb768b8b9ac70 /src/util.c
parent2a637337713c5c92c44249b88e31696ce9efdf9b (diff)
Stop casting pointers to (char *) when freeing them
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.c b/src/util.c
index efed81f..413b8d0 100644
--- a/src/util.c
+++ b/src/util.c
@@ -404,7 +404,7 @@ InsertRGBColormap (Atom a, XStandardColormap *maps, int nmaps, Bool replace)
}
if (replace) { /* just update contents */
- if (sc->maps) XFree ((char *) maps);
+ if (sc->maps) XFree (maps);
if (sc == Scr->StdCmapInfo.mru) Scr->StdCmapInfo.mru = NULL;
} else { /* else appending */
sc->next = NULL;
@@ -433,7 +433,7 @@ RemoveRGBColormap (Atom a)
prev = sc;
}
if (sc) { /* found one */
- if (sc->maps) XFree ((char *) sc->maps);
+ if (sc->maps) XFree (sc->maps);
if (prev) prev->next = sc->next;
if (Scr->StdCmapInfo.head == sc) Scr->StdCmapInfo.head = sc->next;
if (Scr->StdCmapInfo.tail == sc) Scr->StdCmapInfo.tail = prev;
@@ -459,7 +459,7 @@ LocateStandardColormaps(void)
InsertRGBColormap (atoms[i], maps, nmaps, False);
}
}
- if (atoms) XFree ((char *) atoms);
+ if (atoms) XFree (atoms);
return;
}