[PATCH 4/7] remove unneeded cast in symtab.c

Tom Tromey
2014-06-11T18:53:25Z

This removes an unneeded const cast from symtab.c:add_macro_name.

2014-06-11 Tom Tromey <tromey@redhat.com>

* symtab.c (add_macro_name): Remove unneeded cast.
---
gdb/ChangeLog | 4 ++++
gdb/symtab.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gdb/symtab.c b/gdb/symtab.c
index 2453f2d..3c9e0dd 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -4284,7 +4284,7 @@ add_macro_name (const char *name, const struct macro_definition *ignore,
{
struct add_name_data *datum = (struct add_name_data *) user_data;

- completion_list_add_name ((char *) name,
+ completion_list_add_name (name,
datum->sym_text, datum->sym_text_len,
datum->text, datum->word);
}
--
1.9.3