From 27656aaf7f23523375bdd64f92018bb6cbe220a5 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 16 Aug 2022 18:37:42 -0700 Subject: Remove obsolete casts on malloc & free calls Not needed in C89 and later Signed-off-by: Alan Coopersmith --- xcompmgr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xcompmgr.c') 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++) { -- cgit v1.2.3