This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA 56/67] Constify demangle_command
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tom at tromey dot com>
- Date: Wed, 20 Sep 2017 23:10:12 -0600
- Subject: [RFA 56/67] Constify demangle_command
- Authentication-results: sourceware.org; auth=none
- References: <20170921051023.19023-1-tom@tromey.com>
ChangeLog
2017-09-20 Tom Tromey <tom@tromey.com>
* demangle.c (demangle_command): Constify.
---
gdb/ChangeLog | 4 ++++
gdb/demangle.c | 4 +---
2 files changed, 5 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;
--
2.9.4