This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] gdb/tui: Make local variable const.
- From: Andrew Burgess <aburgess at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 31 Aug 2015 10:58:43 -0000
- Subject: [binutils-gdb] gdb/tui: Make local variable const.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=136765eab14d32f5fec607f755c3096eb43bf96f
commit 136765eab14d32f5fec607f755c3096eb43bf96f
Author: Andrew Burgess <andrew.burgess@embecosm.com>
Date: Sun Aug 30 11:14:58 2015 +0100
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:
---
gdb/ChangeLog | 5 +++++
gdb/tui/tui-data.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b26402d..ddb8e78 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * tui/tui-data.c (tui_win_name): Make local variable const, remove
+ cast of NULL.
+
2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
* xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
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)
{