diff options
Diffstat (limited to 'gdb/demangle.c')
-rw-r--r-- | gdb/demangle.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/demangle.c b/gdb/demangle.c index bcf9b77de51..0e5dcb80c29 100644 --- a/gdb/demangle.c +++ b/gdb/demangle.c @@ -57,8 +57,6 @@ static char *current_demangling_style_string; static const char **demangling_style_names; -static void set_demangling_command (char *, int, struct cmd_list_element *); - /* Set current demangling style. Called by the "set demangle-style" command after it has updated the current_demangling_style_string to match what the user has entered. @@ -76,7 +74,8 @@ static void set_demangling_command (char *, int, struct cmd_list_element *); a malloc'd string, even if it is a null-string. */ static void -set_demangling_command (char *ignore, int from_tty, struct cmd_list_element *c) +set_demangling_command (const char *ignore, int from_tty, + struct cmd_list_element *c) { const struct demangler_engine *dem; @@ -149,7 +148,7 @@ set_demangling_style (char *style) xfree (current_demangling_style_string); } current_demangling_style_string = savestring (style, strlen (style)); - set_demangling_command ((char *) NULL, 0, (struct cmd_list_element *) NULL); + set_demangling_command (NULL, 0, (struct cmd_list_element *) NULL); } /* G++ uses a special character to indicate certain internal names. Which |