diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2015-08-30 11:14:58 +0100 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2015-08-31 11:57:44 +0100 |
commit | 136765eab14d32f5fec607f755c3096eb43bf96f (patch) | |
tree | 231ad9d3939ac14f9b978700e7e5952b640de6f5 /gdb/tui | |
parent | 90b81c5f158b2b0565ce5c45270103cc0cfb5b1b (diff) | |
download | gdb-136765eab14d32f5fec607f755c3096eb43bf96f.zip gdb-136765eab14d32f5fec607f755c3096eb43bf96f.tar.gz gdb-136765eab14d32f5fec607f755c3096eb43bf96f.tar.bz2 |
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.
Diffstat (limited to 'gdb/tui')
-rw-r--r-- | gdb/tui/tui-data.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |