summaryrefslogtreecommitdiff
path: root/xcompmgr.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-08-16 18:37:42 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-08-16 18:37:42 -0700
commit27656aaf7f23523375bdd64f92018bb6cbe220a5 (patch)
tree87c09f094bca44ed32d9fc59142c9051881a77ab /xcompmgr.c
parent21155dd1386b98fb98a6e27e0d488c87e20b87c2 (diff)
Remove obsolete casts on malloc & free calls
Not needed in C89 and later Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xcompmgr.c')
-rw-r--r--xcompmgr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xcompmgr.c b/xcompmgr.c
index a425413..904f72f 100644
--- a/xcompmgr.c
+++ b/xcompmgr.c
@@ -499,12 +499,12 @@ presum_gaussian (conv *map)
Gsize = map->size;
if (shadowCorner)
- free ((void *)shadowCorner);
+ free (shadowCorner);
if (shadowTop)
- free ((void *)shadowTop);
+ free (shadowTop);
- shadowCorner = (unsigned char *)(malloc ((Gsize + 1) * (Gsize + 1) * 26));
- shadowTop = (unsigned char *)(malloc ((Gsize + 1) * 26));
+ shadowCorner = malloc ((Gsize + 1) * (Gsize + 1) * 26);
+ shadowTop = malloc ((Gsize + 1) * 26);
for (x = 0; x <= Gsize; x++)
{