aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracepoint.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2017-10-31 14:29:25 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2017-10-31 14:29:25 -0400
commit09b847f3a85ca29ec20ada375fe67843755b6413 (patch)
treede32a9944c0abc854801db2ddf635da4a7b819ae /gdb/tracepoint.c
parent0bb6961f18b8e832d88b490d421ca56cea16c45b (diff)
downloadgdb-09b847f3a85ca29ec20ada375fe67843755b6413.zip
gdb-09b847f3a85ca29ec20ada375fe67843755b6413.tar.gz
gdb-09b847f3a85ca29ec20ada375fe67843755b6413.tar.bz2
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.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r--gdb/tracepoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index fdc3b38..78f4c86 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<char *> (args), from_tty);
+ tfind_command_1 (args, from_tty);
}
/* tfind end */