remove unneeded cast in symtab.c
authorTom Tromey <tromey@redhat.com>
Thu, 28 Mar 2013 17:09:08 +0000 (11:09 -0600)
committerTom Tromey <tromey@redhat.com>
Wed, 18 Jun 2014 14:16:57 +0000 (08:16 -0600)
This removes an unneeded const cast from symtab.c:add_macro_name.

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

* symtab.c (add_macro_name): Remove unneeded cast.

gdb/ChangeLog
gdb/symtab.c

index 3990129f71e49c68fabed4dff0f324af78971248..f34f6dcb2ae1a7edf7f2c3cdb4bd7e65ae8fcab8 100644 (file)
@@ -1,3 +1,7 @@
+2014-06-18  Tom Tromey  <tromey@redhat.com>
+
+       * symtab.c (add_macro_name): Remove unneeded cast.
+
 2014-06-18  Tom Tromey  <tromey@redhat.com>
 
        * cli/cli-setshow.h (parse_cli_boolean_value): Update.
index 2453f2d57e1b7790baf5b12dad9424dc2002acb8..3c9e0dd0ea2f4c357293ac44c00b9bc3f675bed2 100644 (file)
@@ -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);
 }