summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-curses-window.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-03-23 23:00:04 +0100
committerSebastien Helleu <flashcode@flashtux.org>2008-03-23 23:00:04 +0100
commit57323fa71effad75d78b36a45d5457b1bd782963 (patch)
tree50d7a5bacacebcdf59d5bf38dff84c83bf557d31 /src/gui/curses/gui-curses-window.c
parent14feea7ab84df3e367bc3732e8ba1470e1a3f5a7 (diff)
downloadweechat-57323fa71effad75d78b36a45d5457b1bd782963.zip
Removed sizeof(char) and useless type casts from void* to another pointer type (patch from Leonid Evdokimov)
Diffstat (limited to 'src/gui/curses/gui-curses-window.c')
-rw-r--r--src/gui/curses/gui-curses-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/curses/gui-curses-window.c b/src/gui/curses/gui-curses-window.c
index 550d2a909..f760ba769 100644
--- a/src/gui/curses/gui-curses-window.c
+++ b/src/gui/curses/gui-curses-window.c
@@ -75,7 +75,7 @@ gui_window_objects_init (struct t_gui_window *window)
{
struct t_gui_curses_objects *new_objects;
- if ((new_objects = (struct t_gui_curses_objects *)malloc (sizeof (struct t_gui_curses_objects))))
+ if ((new_objects = malloc (sizeof (*new_objects))))
{
window->gui_objects = new_objects;
GUI_CURSES(window)->win_title = NULL;