From 136765eab14d32f5fec607f755c3096eb43bf96f Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Sun, 30 Aug 2015 11:14:58 +0100 Subject: gdb/tui: Make local variable const. Small clean up to make a local variable const and remove a cast of NULL. gdb/ChangeLog: * tui/tui-data.c (tui_win_name): Make local variable const, remove cast of NULL. --- gdb/tui/tui-data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/tui') diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c index 4623bf0..b584251 100644 --- a/gdb/tui/tui-data.c +++ b/gdb/tui/tui-data.c @@ -402,7 +402,7 @@ tui_partial_win_by_name (char *name) const char * tui_win_name (const struct tui_gen_win_info *win_info) { - char *name = (char *) NULL; + const char *name = NULL; switch (win_info->type) { -- cgit v1.1