Constify demangle_command

gdb/ChangeLog
2017-09-27  Tom Tromey  <tom@tromey.com>

	* demangle.c (demangle_command): Constify.
This commit is contained in:
Tom Tromey
2017-09-12 21:16:47 -06:00
parent 9c504b5d34
commit 1f3f85eba6
2 changed files with 5 additions and 3 deletions

View File

@ -43,8 +43,6 @@
#define DEFAULT_DEMANGLING_STYLE AUTO_DEMANGLING_STYLE_STRING
#endif
static void demangle_command (char *, int);
/* See documentation in gdb-demangle.h. */
int demangle = 1;
@ -159,7 +157,7 @@ is_cplus_marker (int c)
/* Demangle the given string in the current language. */
static void
demangle_command (char *args, int from_tty)
demangle_command (const char *args, int from_tty)
{
char *demangled;
const char *name;