summaryrefslogtreecommitdiff
path: root/src/Distinct.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Distinct.c')
-rw-r--r--src/Distinct.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Distinct.c b/src/Distinct.c
index 9d31494..8c8bb5f 100644
--- a/src/Distinct.c
+++ b/src/Distinct.c
@@ -77,13 +77,13 @@ XmuDistinguishablePixels(Display *dpy, Colormap cmap,
for (j = i + 1; j < count; j++)
if (pixels[i] == pixels[j])
return False;
- defs = (XColor *) malloc (count * sizeof (XColor));
+ defs = malloc (count * sizeof (XColor));
if (!defs)
return False;
for (i = 0; i < count; i++)
defs[i].pixel = pixels[i];
XQueryColors (dpy, cmap, defs, count);
ret = XmuDistinguishableColors (defs, count);
- free ((char *) defs);
+ free (defs);
return ret;
}