diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-08-16 18:37:42 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-08-16 18:37:42 -0700 |
commit | 27656aaf7f23523375bdd64f92018bb6cbe220a5 (patch) | |
tree | 87c09f094bca44ed32d9fc59142c9051881a77ab /xcompmgr.c | |
parent | 21155dd1386b98fb98a6e27e0d488c87e20b87c2 (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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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++) { |