This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA 23/67] Constify some commands in cli-logging.c
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tom at tromey dot com>
- Date: Wed, 20 Sep 2017 23:09:39 -0600
- Subject: [RFA 23/67] Constify some commands in cli-logging.c
- Authentication-results: sourceware.org; auth=none
- References: <20170921051023.19023-1-tom@tromey.com>
ChangeLog
2017-09-20 Tom Tromey <tom@tromey.com>
* cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
---
gdb/ChangeLog | 4 ++++
gdb/cli/cli-logging.c | 6 +++---
2 files changed, 7 insertions(+), 3 deletions(-)
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;
--
2.9.4