Constify some commands in tui.c
authorTom Tromey <tom@tromey.com>
Sun, 10 Sep 2017 03:51:21 +0000 (21:51 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 27 Sep 2017 14:44:39 +0000 (08:44 -0600)
gdb/ChangeLog
2017-09-27  Tom Tromey  <tom@tromey.com>

* tui/tui.c (tui_enable_command, tui_disable_command): Constify.

gdb/ChangeLog
gdb/tui/tui.c

index b55230788aaa63fcb8d4c12f105520336acc38fe..08d34625913c0d6a5458eb9528de83d9ab69b22d 100644 (file)
@@ -1,3 +1,7 @@
+2017-09-27  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
+
 2017-09-27  Tom Tromey  <tom@tromey.com>
 
        * tui/tui-regs.c (tui_reg_command): Constify.
index 77dc86642f2bb2d40ed436da50ad65bd6a31e20e..a59907f7639a1696ae55e9125b1d63fe7bf45e03 100644 (file)
@@ -545,7 +545,7 @@ tui_disable (void)
 /* Command wrapper for enabling tui mode.  */
 
 static void
-tui_enable_command (char *args, int from_tty)
+tui_enable_command (const char *args, int from_tty)
 {
   tui_enable ();
 }
@@ -553,7 +553,7 @@ tui_enable_command (char *args, int from_tty)
 /* Command wrapper for leaving tui mode.  */
 
 static void
-tui_disable_command (char *args, int from_tty)
+tui_disable_command (const char *args, int from_tty)
 {
   tui_disable ();
 }
This page took 0.03293 seconds and 4 git commands to generate.