diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-18 10:18:21 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-18 10:18:21 -0700 |
commit | 58f3c3b8d518786764f45ac2be1f1f0850129125 (patch) | |
tree | db01e99d81fe6120d5a9311c2d0fb768b8b9ac70 /src/menus.c | |
parent | 2a637337713c5c92c44249b88e31696ce9efdf9b (diff) |
Stop casting pointers to (char *) when freeing them
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/menus.c')
-rw-r--r-- | src/menus.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/menus.c b/src/menus.c index 1296025..4acfe85 100644 --- a/src/menus.c +++ b/src/menus.c @@ -157,7 +157,7 @@ InitMenus(void) free(key->name); tmp = key; key = key->next; - free((char *) tmp); + free(tmp); } Scr->FuncKeyRoot.next = NULL; } @@ -2777,7 +2777,7 @@ BumpWindowColormap (TwmWindow *tmp, int inc) cwins[j] = tmp->cmaps.cwins[i]; } - free((char *) tmp->cmaps.cwins); + free(tmp->cmaps.cwins); tmp->cmaps.cwins = cwins; @@ -2838,7 +2838,7 @@ DestroyMenu (MenuRoot *menu) for (item = menu->first; item; ) { MenuItem *tmp = item; item = item->next; - free ((char *) tmp); + free (tmp); } } |