constify monitor_open

This constifies an argument to monitor_open.

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

	* monitor.c (monitor_open): Make "args" const.
	* monitor.h (monitor_open): Update.
This commit is contained in:
Tom Tromey 2014-07-21 16:56:28 -06:00
parent fc4baa5e1f
commit 5a19e2d0fe
3 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2014-07-24 Tom Tromey <tromey@redhat.com>
* monitor.c (monitor_open): Make "args" const.
* monitor.h (monitor_open): Update.
2014-07-24 Tom Tromey <tromey@redhat.com>
* maint.c (match_bfd_flags): Make "string" const.

View file

@ -713,7 +713,7 @@ compile_pattern (char *pattern, struct re_pattern_buffer *compiled_pattern,
for communication. */
void
monitor_open (char *args, struct monitor_ops *mon_ops, int from_tty)
monitor_open (const char *args, struct monitor_ops *mon_ops, int from_tty)
{
char *name;
char **p;

View file

@ -239,7 +239,8 @@ struct monitor_ops
#define SREC_SIZE 160
extern void monitor_open (char *args, struct monitor_ops *ops, int from_tty);
extern void monitor_open (const char *args, struct monitor_ops *ops,
int from_tty);
extern void monitor_close (struct target_ops *self);
extern char *monitor_supply_register (struct regcache *regcache,
int regno, char *valstr);