Constify some commands in probes.c

gdb/ChangeLog
2017-09-27  Tom Tromey  <tom@tromey.com>

	* probe.c (enable_probes_command, disable_probes_command):
	Constify.
This commit is contained in:
Tom Tromey 2017-09-12 20:42:32 -06:00
parent 1d8b34a7a2
commit 6781007668
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2017-09-27 Tom Tromey <tom@tromey.com>
* probe.c (enable_probes_command, disable_probes_command):
Constify.
2017-09-27 Tom Tromey <tom@tromey.com>
* symfile.c (symbol_file_command): Constify.

View File

@ -674,7 +674,7 @@ info_probes_command (char *arg, int from_tty)
/* Implementation of the `enable probes' command. */
static void
enable_probes_command (char *arg, int from_tty)
enable_probes_command (const char *arg, int from_tty)
{
std::string provider, probe_name, objname;
struct cleanup *cleanup = make_cleanup (null_cleanup, NULL);
@ -713,7 +713,7 @@ enable_probes_command (char *arg, int from_tty)
/* Implementation of the `disable probes' command. */
static void
disable_probes_command (char *arg, int from_tty)
disable_probes_command (const char *arg, int from_tty)
{
std::string provider, probe_name, objname;
struct cleanup *cleanup = make_cleanup (null_cleanup, NULL);