aboutsummaryrefslogtreecommitdiff
path: root/gdb/inf-child.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2014-06-06 13:26:53 -0600
committerTom Tromey <tromey@redhat.com>2014-06-16 10:29:17 -0600
commitfee354eeef0b5bb9b1b799e2ce313fc805b2af1a (patch)
treedff86f4f8779dc5d787c9dd24a802ef66b0ce46c /gdb/inf-child.c
parenta30bf1f15c51b82a0134713bc44175cda296d3ae (diff)
downloadgdb-fee354eeef0b5bb9b1b799e2ce313fc805b2af1a.zip
gdb-fee354eeef0b5bb9b1b799e2ce313fc805b2af1a.tar.gz
gdb-fee354eeef0b5bb9b1b799e2ce313fc805b2af1a.tar.bz2
constify to_disconnect
This constifies an parameter of to_disconnect and updates target_disconnect as well. 2014-06-16 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_disconnect>: Make parameter const. (target_disconnect): Update. * target.c (target_disconnect): Make "args" const. * target-delegates.c: Rebuild. * remote.c (remote_disconnect): Update. * record.h (record_disconnect): Update. * record.c (record_disconnect): Update. * inf-child.c (inf_child_disconnect): Update.
Diffstat (limited to 'gdb/inf-child.c')
-rw-r--r--gdb/inf-child.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/inf-child.c b/gdb/inf-child.c
index dbadde8..897e635 100644
--- a/gdb/inf-child.c
+++ b/gdb/inf-child.c
@@ -140,7 +140,7 @@ inf_child_open (char *arg, int from_tty)
/* Implement the to_disconnect target_ops method. */
static void
-inf_child_disconnect (struct target_ops *target, char *args, int from_tty)
+inf_child_disconnect (struct target_ops *target, const char *args, int from_tty)
{
if (args != NULL)
error (_("Argument given to \"disconnect\"."));