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] Code cleanup: Make validate_format parameter const


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

commit 8d89f51a70a9a3cf74562324fc0391e4872a93b1
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Mar 26 18:41:24 2015 +0100

    Code cleanup: Make validate_format parameter const
    
    gdb/ChangeLog
    2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
    
    	Code cleanup.
    	* printcmd.c (validate_format): Make the parameter cmdname const.

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

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 95bbda3..55a8383 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	Code cleanup.
+	* printcmd.c (validate_format): Make the parameter cmdname const.
+
 2015-03-26  Don Breazeal  <donb@codesourcery.com>
 
 	* remote.c (_initialize_remote): Update comment.
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 05c68a0..deb501a 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -927,7 +927,7 @@ do_examine (struct format_data fmt, struct gdbarch *gdbarch, CORE_ADDR addr)
 }
 
 static void
-validate_format (struct format_data fmt, char *cmdname)
+validate_format (struct format_data fmt, const char *cmdname)
 {
   if (fmt.size != 0)
     error (_("Size letters are meaningless in \"%s\" command."), cmdname);


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