constify inf_child_open_target

This constifies an argument to inf_child_open_target.

2014-07-24  Tom Tromey  <tromey@redhat.com>

	* inf-child.c (inf_child_open_target): Make "arg" const.
	* inf-child.h (inf_child_open_target): Update.
This commit is contained in:
Tom Tromey 2014-07-21 16:49:09 -06:00
parent 41c7789967
commit 0d5f0dbeb0
3 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2014-07-24 Tom Tromey <tromey@redhat.com>
* inf-child.c (inf_child_open_target): Make "arg" const.
* inf-child.h (inf_child_open_target): Update.
2014-07-24 Tom Tromey <tromey@redhat.com> 2014-07-24 Tom Tromey <tromey@redhat.com>
* environ.c (unset_in_environ): Make "var" const. * environ.c (unset_in_environ): Make "var" const.

View file

@ -122,7 +122,8 @@ static int inf_child_explicitly_opened;
/* See inf-child.h. */ /* See inf-child.h. */
void void
inf_child_open_target (struct target_ops *target, char *arg, int from_tty) inf_child_open_target (struct target_ops *target, const char *arg,
int from_tty)
{ {
target_preopen (from_tty); target_preopen (from_tty);
push_target (target); push_target (target);

View file

@ -34,7 +34,7 @@ extern void store_waitstatus (struct target_waitstatus *, int);
the target, in case it need to override to_open. */ the target, in case it need to override to_open. */
extern void inf_child_open_target (struct target_ops *target, extern void inf_child_open_target (struct target_ops *target,
char *arg, int from_tty); const char *arg, int from_tty);
/* To be called by the native target's to_mourn_inferior routine. */ /* To be called by the native target's to_mourn_inferior routine. */