This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA 64/67] Constify some commands in inferior.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:10:20 -0600
- Subject: [RFA 64/67] Constify some commands in inferior.c
- Authentication-results: sourceware.org; auth=none
- References: <20170921051023.19023-1-tom@tromey.com>
ChangeLog
2017-09-20 Tom Tromey <tom@tromey.com>
* inferior.c (detach_inferior_command, kill_inferior_command)
(inferior_command): Constify.
---
gdb/ChangeLog | 5 +++++
gdb/inferior.c | 6 +++---
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/gdb/inferior.c b/gdb/inferior.c
index b916909..ba8efe2 100644
--- a/gdb/inferior.c
+++ b/gdb/inferior.c
@@ -596,7 +596,7 @@ print_inferior (struct ui_out *uiout, char *requested_inferiors)
}
static void
-detach_inferior_command (char *args, int from_tty)
+detach_inferior_command (const char *args, int from_tty)
{
struct thread_info *tp;
@@ -635,7 +635,7 @@ detach_inferior_command (char *args, int from_tty)
}
static void
-kill_inferior_command (char *args, int from_tty)
+kill_inferior_command (const char *args, int from_tty)
{
struct thread_info *tp;
@@ -676,7 +676,7 @@ kill_inferior_command (char *args, int from_tty)
}
static void
-inferior_command (char *args, int from_tty)
+inferior_command (const char *args, int from_tty)
{
struct inferior *inf;
int num;
--
2.9.4