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 new_ui_command


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

commit 32faf971cd86d0a13c6b3db4626d4c8bd119e6c5
Author: Tom Tromey <tom@tromey.com>
Date:   Sat Sep 9 21:44:55 2017 -0600

    Constify new_ui_command
    
    gdb/ChangeLog
    2017-09-27  Tom Tromey  <tom@tromey.com>
    
    	* top.c (new_ui_command): Constify.

Diff:
---
 gdb/ChangeLog | 4 ++++
 gdb/top.c     | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 76585e8..4218f96 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
 2017-09-27  Tom Tromey  <tom@tromey.com>
 
+	* top.c (new_ui_command): Constify.
+
+2017-09-27  Tom Tromey  <tom@tromey.com>
+
 	* symfile.c (add_symbol_file_command)
 	(remove_symbol_file_command, list_overlays_command)
 	(map_overlay_command, unmap_overlay_command)
diff --git a/gdb/top.c b/gdb/top.c
index c89e78f..4fc987c 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -354,7 +354,7 @@ open_terminal_stream (const char *name)
 /* Implementation of the "new-ui" command.  */
 
 static void
-new_ui_command (char *args, int from_tty)
+new_ui_command (const char *args, int from_tty)
 {
   struct ui *ui;
   struct interp *interp;


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