[RFA,04/67] Constify info_probes_dtrace_command

Message ID 20170921051023.19023-5-tom@tromey.com
State New, archived
Headers

Commit Message

Tom Tromey Sept. 21, 2017, 5:09 a.m. UTC
  ChangeLog
2017-09-20  Tom Tromey  <tom@tromey.com>

	* dtrace-probe.c (info_probes_dtrace_command): Constify.
---
 gdb/ChangeLog      | 4 ++++
 gdb/dtrace-probe.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)
  

Comments

Sergio Durigan Junior Sept. 21, 2017, 12:48 p.m. UTC | #1
On Thursday, September 21 2017, Tom Tromey wrote:

> ChangeLog
> 2017-09-20  Tom Tromey  <tom@tromey.com>
>
> 	* dtrace-probe.c (info_probes_dtrace_command): Constify.

OK.

> ---
>  gdb/ChangeLog      | 4 ++++
>  gdb/dtrace-probe.c | 2 +-
>  2 files changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/gdb/dtrace-probe.c b/gdb/dtrace-probe.c
> index 5a4daa3..2bbe03e 100644
> --- a/gdb/dtrace-probe.c
> +++ b/gdb/dtrace-probe.c
> @@ -904,7 +904,7 @@ const struct probe_ops dtrace_probe_ops =
>  /* Implementation of the `info probes dtrace' command.  */
>  
>  static void
> -info_probes_dtrace_command (char *arg, int from_tty)
> +info_probes_dtrace_command (const char *arg, int from_tty)
>  {
>    info_probes_for_ops (arg, from_tty, &dtrace_probe_ops);
>  }
> -- 
> 2.9.4
  

Patch

diff --git a/gdb/dtrace-probe.c b/gdb/dtrace-probe.c
index 5a4daa3..2bbe03e 100644
--- a/gdb/dtrace-probe.c
+++ b/gdb/dtrace-probe.c
@@ -904,7 +904,7 @@  const struct probe_ops dtrace_probe_ops =
 /* Implementation of the `info probes dtrace' command.  */
 
 static void
-info_probes_dtrace_command (char *arg, int from_tty)
+info_probes_dtrace_command (const char *arg, int from_tty)
 {
   info_probes_for_ops (arg, from_tty, &dtrace_probe_ops);
 }