From: Tom Tromey Date: Thu, 28 Mar 2013 17:09:08 +0000 (-0600) Subject: remove unneeded cast in symtab.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ac1a991b1c00891d29607a6f97d98d66312af83f;p=binutils-gdb.git remove unneeded cast in symtab.c This removes an unneeded const cast from symtab.c:add_macro_name. 2014-06-18 Tom Tromey * symtab.c (add_macro_name): Remove unneeded cast. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3990129f71e..f34f6dcb2ae 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2014-06-18 Tom Tromey + + * symtab.c (add_macro_name): Remove unneeded cast. + 2014-06-18 Tom Tromey * cli/cli-setshow.h (parse_cli_boolean_value): Update. diff --git a/gdb/symtab.c b/gdb/symtab.c index 2453f2d57e1..3c9e0dd0ea2 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); }