X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Ftui%2Ftui-wingeneral.c;h=dbe201a09c1cf13890aa79e4272990d4427d496f;hb=e2e31f1039e614b11277f5f1acc4182cd7fd3f2c;hp=0af6a8cb6470e41b5de7aa9c044982e5fd017498;hpb=4c38e0a4fcb69f8586d8db0b9cdb8dbab5980811;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/tui/tui-wingeneral.c b/gdb/tui/tui-wingeneral.c index 0af6a8cb64..dbe201a09c 100644 --- a/gdb/tui/tui-wingeneral.c +++ b/gdb/tui/tui-wingeneral.c @@ -1,7 +1,6 @@ /* General window behavior. - Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2007, 2008, 2009, 2010 - Free Software Foundation, Inc. + Copyright (C) 1998-2018 Free Software Foundation, Inc. Contributed by Hewlett-Packard Company. @@ -102,7 +101,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, win_info->title); + mvwaddstr (win, 0, 3, (char *) win_info->title); wattroff (win, attrs); } } @@ -195,7 +194,7 @@ make_visible (struct tui_gen_win_info *win_info, int visible) { win_info->is_visible = FALSE; tui_delete_win (win_info->handle); - win_info->handle = (WINDOW *) NULL; + win_info->handle = NULL; } return; @@ -253,7 +252,7 @@ tui_make_all_invisible (void) void tui_refresh_all (struct tui_win_info **list) { - enum tui_win_type type; + int type; struct tui_gen_win_info *locator = tui_locator_win_info_ptr (); for (type = SRC_WIN; (type < MAX_MAJOR_WINDOWS); type++)