aboutsummaryrefslogtreecommitdiff
path: root/gdb/demangle.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-09-12 21:16:47 -0600
committerTom Tromey <tom@tromey.com>2017-09-27 08:45:01 -0600
commit1f3f85eba696bfff4fea5e66167ee001c07c4b0b (patch)
tree8380e01c69088d60f894e264a64802feb2b2223a /gdb/demangle.c
parent9c504b5d34803ca2520e554aceaa2e69c141dc89 (diff)
downloadgdb-1f3f85eba696bfff4fea5e66167ee001c07c4b0b.zip
gdb-1f3f85eba696bfff4fea5e66167ee001c07c4b0b.tar.gz
gdb-1f3f85eba696bfff4fea5e66167ee001c07c4b0b.tar.bz2
Constify demangle_command
gdb/ChangeLog 2017-09-27 Tom Tromey <tom@tromey.com> * demangle.c (demangle_command): Constify.
Diffstat (limited to 'gdb/demangle.c')
-rw-r--r--gdb/demangle.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/demangle.c b/gdb/demangle.c
index 5430fb6..1a97fb7 100644
--- a/gdb/demangle.c
+++ b/gdb/demangle.c
@@ -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;