This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA 07/67] Constify two functions in cp-abi.c
- 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:09:23 -0600
- Subject: [RFA 07/67] Constify two functions in cp-abi.c
- Authentication-results: sourceware.org; auth=none
- References: <20170921051023.19023-1-tom@tromey.com>
ChangeLog
2017-09-20 Tom Tromey <tom@tromey.com>
* cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
---
gdb/ChangeLog | 4 ++++
gdb/cp-abi.c | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/gdb/cp-abi.c b/gdb/cp-abi.c
index 49fab32..11b8424 100644
--- a/gdb/cp-abi.c
+++ b/gdb/cp-abi.c
@@ -341,7 +341,7 @@ list_cp_abis (int from_tty)
argument is given. */
static void
-set_cp_abi_cmd (char *args, int from_tty)
+set_cp_abi_cmd (const char *args, int from_tty)
{
if (args == NULL)
{
@@ -378,7 +378,7 @@ cp_abi_completer (struct cmd_list_element *ignore,
/* Show the currently selected C++ ABI. */
static void
-show_cp_abi_cmd (char *args, int from_tty)
+show_cp_abi_cmd (const char *args, int from_tty)
{
struct ui_out *uiout = current_uiout;
--
2.9.4