aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-wingeneral.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/tui/tui-wingeneral.c')
-rw-r--r--gdb/tui/tui-wingeneral.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/tui/tui-wingeneral.c b/gdb/tui/tui-wingeneral.c
index dbe201a..2d79ea3 100644
--- a/gdb/tui/tui-wingeneral.c
+++ b/gdb/tui/tui-wingeneral.c
@@ -43,8 +43,7 @@ tui_refresh_win (struct tui_gen_win_info *win_info)
{
struct tui_gen_win_info *data_item_win_ptr;
- data_item_win_ptr = &((tui_win_content)
- win_info->content)[i]->which_element.data_window;
+ data_item_win_ptr = &win_info->content[i]->which_element.data_window;
if (data_item_win_ptr != NULL
&& data_item_win_ptr->handle != (WINDOW *) NULL)
wrefresh (data_item_win_ptr->handle);
@@ -101,7 +100,7 @@ box_win (struct tui_gen_win_info *win_info,
box (win, tui_border_vline, tui_border_hline);
#endif
if (win_info->title)
- mvwaddstr (win, 0, 3, (char *) win_info->title);
+ mvwaddstr (win, 0, 3, win_info->title);
wattroff (win, attrs);
}
}