gdb/tui: Make local variable const.
authorAndrew Burgess <andrew.burgess@embecosm.com>
Sun, 30 Aug 2015 10:14:58 +0000 (11:14 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 31 Aug 2015 10:57:44 +0000 (11:57 +0100)
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/ChangeLog
gdb/tui/tui-data.c

index b26402df61d599d415059df0d2362c122a202ee0..ddb8e78cbb75ba36c4c1ff49b06202c61635a6a9 100644 (file)
@@ -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
index 4623bf003c3ffa516be72ffa68539257f95ff579..b58425128d3cf4fcd0dbe1c9f95ecf560e7b161a 100644 (file)
@@ -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)
     {