This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA 36/67] Constify some commands in source.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:52 -0600
- Subject: [RFA 36/67] Constify some commands in source.c
- Authentication-results: sourceware.org; auth=none
- References: <20170921051023.19023-1-tom@tromey.com>
ChangeLog
2017-09-20 Tom Tromey <tom@tromey.com>
* source.c (show_substitute_path_command)
(unset_substitute_path_command, set_substitute_path_command):
Constify.
---
gdb/ChangeLog | 6 ++++++
gdb/source.c | 6 +++---
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/gdb/source.c b/gdb/source.c
index 0564c15..aa672fd 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -1850,7 +1850,7 @@ delete_substitute_path_rule (struct substitute_path_rule *rule)
/* Implement the "show substitute-path" command. */
static void
-show_substitute_path_command (char *args, int from_tty)
+show_substitute_path_command (const char *args, int from_tty)
{
struct substitute_path_rule *rule = substitute_path_rules;
char *from = NULL;
@@ -1884,7 +1884,7 @@ show_substitute_path_command (char *args, int from_tty)
/* Implement the "unset substitute-path" command. */
static void
-unset_substitute_path_command (char *args, int from_tty)
+unset_substitute_path_command (const char *args, int from_tty)
{
struct substitute_path_rule *rule = substitute_path_rules;
gdb_argv argv (args);
@@ -1935,7 +1935,7 @@ unset_substitute_path_command (char *args, int from_tty)
/* Add a new source path substitution rule. */
static void
-set_substitute_path_command (char *args, int from_tty)
+set_substitute_path_command (const char *args, int from_tty)
{
struct substitute_path_rule *rule;
--
2.9.4