From: Andrew Burgess Date: Sun, 30 Aug 2015 10:14:58 +0000 (+0100) Subject: gdb/tui: Make local variable const. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=136765eab14d32f5fec607f755c3096eb43bf96f;p=binutils-gdb.git 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b26402df61d..ddb8e78cbb7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-08-31 Andrew Burgess + + * tui/tui-data.c (tui_win_name): Make local variable const, remove + cast of NULL. + 2015-08-31 Max Filippov * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c index 4623bf003c3..b58425128d3 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) {