From: Tom Tromey Date: Sun, 10 Sep 2017 02:59:50 +0000 (-0600) Subject: Constify two functions in cp-abi.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4ada038f6a8330b27769ad0227c7f716aa29b649;p=binutils-gdb.git Constify two functions in cp-abi.c gdb/ChangeLog 2017-09-27 Tom Tromey * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 11c20d8a080..74e805db123 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2017-09-27 Tom Tromey + + * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify. + 2017-09-27 Tom Tromey * arc-tdep.c (dump_arc_instruction_command): Constify. diff --git a/gdb/cp-abi.c b/gdb/cp-abi.c index 49fab32561f..11b8424856d 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;