mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
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:
parent
41c7789967
commit
0d5f0dbeb0
@ -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>
|
||||
|
||||
* environ.c (unset_in_environ): Make "var" const.
|
||||
|
@ -122,7 +122,8 @@ static int inf_child_explicitly_opened;
|
||||
/* See inf-child.h. */
|
||||
|
||||
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);
|
||||
push_target (target);
|
||||
|
@ -34,7 +34,7 @@ extern void store_waitstatus (struct target_waitstatus *, int);
|
||||
the target, in case it need to override to_open. */
|
||||
|
||||
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. */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user