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 cli-logging.c


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

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

    Constify some commands in cli-logging.c
    
    gdb/ChangeLog
    2017-09-27  Tom Tromey  <tom@tromey.com>
    
    	* cli/cli-logging.c (set_logging_on, set_logging_off): Constify.

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

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9ff18c6..8058875 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
 2017-09-27  Tom Tromey  <tom@tromey.com>
 
+	* cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
+
+2017-09-27  Tom Tromey  <tom@tromey.com>
+
 	* cli/cli-script.c (user_defined_command): Constify.
 
 2017-09-27  Tom Tromey  <tom@tromey.com>
diff --git a/gdb/cli/cli-logging.c b/gdb/cli/cli-logging.c
index 67005a1..14242e0 100644
--- a/gdb/cli/cli-logging.c
+++ b/gdb/cli/cli-logging.c
@@ -146,9 +146,9 @@ handle_redirections (int from_tty)
 }
 
 static void
-set_logging_on (char *args, int from_tty)
+set_logging_on (const char *args, int from_tty)
 {
-  char *rest = args;
+  const char *rest = args;
 
   if (rest && *rest)
     {
@@ -159,7 +159,7 @@ set_logging_on (char *args, int from_tty)
 }
 
 static void 
-set_logging_off (char *args, int from_tty)
+set_logging_off (const char *args, int from_tty)
 {
   if (saved_filename == NULL)
     return;


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