From: Simon Marchi Date: Tue, 31 Oct 2017 18:29:25 +0000 (-0400) Subject: tracepoint: Remove unnecessary const_cast X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=09b847f3a85ca29ec20ada375fe67843755b6413;p=binutils-gdb.git tracepoint: Remove unnecessary const_cast We are passing a const char * to a const char * parameter, the const_cast is not necessary. gdb/ChangeLog: * tracepoint.c (tfind_command): Remove const_cast. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a72cc742bb6..eec03e443cd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2017-10-31 Simon Marchi + + * tracepoint.c (tfind_command): Remove const_cast. + 2017-10-30 Mike Gulick * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h. diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index fdc3b38490b..78f4c861263 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -2319,7 +2319,7 @@ tfind_command_1 (const char *args, int from_tty) static void tfind_command (const char *args, int from_tty) { - tfind_command_1 (const_cast (args), from_tty); + tfind_command_1 (args, from_tty); } /* tfind end */