summaryrefslogtreecommitdiff
path: root/src/icons.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/icons.c
parent2a637337713c5c92c44249b88e31696ce9efdf9b (diff)
Stop casting pointers to (char *) when freeing them
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/icons.c')
-rw-r--r--src/icons.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/icons.c b/src/icons.c
index 76b8a68..ad99888 100644
--- a/src/icons.c
+++ b/src/icons.c
@@ -243,7 +243,7 @@ IconDown (TwmWindow *tmp_win)
{
ip->next = ie->next;
mergeEntries (ie, ip);
- free ((char *) ie);
+ free (ie);
ie = ip;
ip = prevIconEntry (ip, ir);
} else if (in && in->used == 0 &&
@@ -252,7 +252,7 @@ IconDown (TwmWindow *tmp_win)
{
ie->next = in->next;
mergeEntries (in, ie);
- free ((char *) in);
+ free (in);
in = ie->next;
} else
break;
@@ -311,7 +311,7 @@ FreeIconEntries (IconRegion *ir)
for (ie = ir->entries; ie; ie=tmp)
{
tmp = ie->next;
- free ((char *) ie);
+ free (ie);
}
}
@@ -325,7 +325,7 @@ FreeIconRegions(void)
tmp = ir;
FreeIconEntries (ir);
ir = ir->next;
- free((char *) tmp);
+ free(tmp);
}
Scr->FirstRegion = NULL;
Scr->LastRegion = NULL;