This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA 08/67] Constify two functions in linux-fork.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:24 -0600
- Subject: [RFA 08/67] Constify two functions in linux-fork.c
- Authentication-results: sourceware.org; auth=none
- References: <20170921051023.19023-1-tom@tromey.com>
ChangeLog
2017-09-20 Tom Tromey <tom@tromey.com>
* linux-fork.c (delete_checkpoint_command)
(detach_checkpoint_command): Constify.
---
gdb/ChangeLog | 5 +++++
gdb/linux-fork.c | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/gdb/linux-fork.c b/gdb/linux-fork.c
index 22a11c6..4580aa6 100644
--- a/gdb/linux-fork.c
+++ b/gdb/linux-fork.c
@@ -503,7 +503,7 @@ out:
/* Fork list <-> user interface. */
static void
-delete_checkpoint_command (char *args, int from_tty)
+delete_checkpoint_command (const char *args, int from_tty)
{
ptid_t ptid, pptid;
struct fork_info *fi;
@@ -544,7 +544,7 @@ Please switch to another checkpoint before deleting the current one"));
}
static void
-detach_checkpoint_command (char *args, int from_tty)
+detach_checkpoint_command (const char *args, int from_tty)
{
ptid_t ptid;
--
2.9.4