aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-09-12 21:32:18 -0600
committerTom Tromey <tom@tromey.com>2017-09-27 08:45:08 -0600
commite503b1919bc5d06684ba6b1d09a6ccdf0a50b879 (patch)
tree926cd50b1aaeb8cc7856e7132456b12e2bb294a4 /gdb/inferior.c
parentConstify some commands in regcache.c (diff)
downloadbinutils-gdb-e503b1919bc5d06684ba6b1d09a6ccdf0a50b879.tar.gz
binutils-gdb-e503b1919bc5d06684ba6b1d09a6ccdf0a50b879.tar.bz2
binutils-gdb-e503b1919bc5d06684ba6b1d09a6ccdf0a50b879.zip
Constify some commands in inferior.c
gdb/ChangeLog 2017-09-27 Tom Tromey <tom@tromey.com> * inferior.c (detach_inferior_command, kill_inferior_command) (inferior_command): Constify.
Diffstat (limited to 'gdb/inferior.c')
-rw-r--r--gdb/inferior.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/inferior.c b/gdb/inferior.c
index b916909905c..ba8efe23426 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;