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.
This commit is contained in:
Simon Marchi 2017-10-31 14:29:25 -04:00
parent 0bb6961f18
commit 09b847f3a8
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2017-10-31 Simon Marchi <simon.marchi@ericsson.com>
* tracepoint.c (tfind_command): Remove const_cast.
2017-10-30 Mike Gulick <mgulick@mathworks.com>
* Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.

View File

@ -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<char *> (args), from_tty);
tfind_command_1 (args, from_tty);
}
/* tfind end */