This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Constify some commands in tui.c


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b961da0bb033e0058059695fdc28c5fbe0057c1a

commit b961da0bb033e0058059695fdc28c5fbe0057c1a
Author: Tom Tromey <tom@tromey.com>
Date:   Sat Sep 9 21:51:21 2017 -0600

    Constify some commands in tui.c
    
    gdb/ChangeLog
    2017-09-27  Tom Tromey  <tom@tromey.com>
    
    	* tui/tui.c (tui_enable_command, tui_disable_command): Constify.

Diff:
---
 gdb/ChangeLog | 4 ++++
 gdb/tui/tui.c | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b552307..08d3462 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
 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.
 
 2017-09-27  Tom Tromey  <tom@tromey.com>
diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c
index 77dc866..a59907f 100644
--- a/gdb/tui/tui.c
+++ b/gdb/tui/tui.c
@@ -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 ();
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]