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 user_defined_command


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

commit 898241a5ba617eb3e0bad4eb0bafaa9320320178
Author: Tom Tromey <tom@tromey.com>
Date:   Sat Sep 9 21:40:16 2017 -0600

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

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

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f65691d..9ff18c6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
 2017-09-27  Tom Tromey  <tom@tromey.com>
 
+	* cli/cli-script.c (user_defined_command): Constify.
+
+2017-09-27  Tom Tromey  <tom@tromey.com>
+
 	* cli/cli-dump.c (dump_memory_command, dump_value_command)
 	(dump_srec_memory, dump_srec_value, dump_ihex_memory)
 	(dump_ihex_value, dump_verilog_memory, dump_verilog_value)
diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c
index 37466fd..0a93e8b 100644
--- a/gdb/cli/cli-script.c
+++ b/gdb/cli/cli-script.c
@@ -1401,7 +1401,7 @@ validate_comname (char **comname)
 
 /* This is just a placeholder in the command data structures.  */
 static void
-user_defined_command (char *ignore, int from_tty)
+user_defined_command (const char *ignore, int from_tty)
 {
 }


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