From fee354eeef0b5bb9b1b799e2ce313fc805b2af1a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 6 Jun 2014 13:26:53 -0600 Subject: constify to_disconnect This constifies an parameter of to_disconnect and updates target_disconnect as well. 2014-06-16 Tom Tromey * target.h (struct target_ops) : 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. --- gdb/target-delegates.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/target-delegates.c') diff --git a/gdb/target-delegates.c b/gdb/target-delegates.c index 522d52b..4eefae8 100644 --- a/gdb/target-delegates.c +++ b/gdb/target-delegates.c @@ -28,14 +28,14 @@ tdefault_detach (struct target_ops *self, const char *arg1, int arg2) } static void -delegate_disconnect (struct target_ops *self, char *arg1, int arg2) +delegate_disconnect (struct target_ops *self, const char *arg1, int arg2) { self = self->beneath; self->to_disconnect (self, arg1, arg2); } static void -tdefault_disconnect (struct target_ops *self, char *arg1, int arg2) +tdefault_disconnect (struct target_ops *self, const char *arg1, int arg2) { tcomplain (); } -- cgit v1.1