This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Constify two functions in linux-fork.c
- From: Tom Tromey <tromey at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 27 Sep 2017 14:54:03 -0000
- Subject: [binutils-gdb] Constify two functions in linux-fork.c
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5b64bf744c04f550a9d15b49a8cb0245904afb13
commit 5b64bf744c04f550a9d15b49a8cb0245904afb13
Author: Tom Tromey <tom@tromey.com>
Date: Sat Sep 9 21:00:26 2017 -0600
Constify two functions in linux-fork.c
gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>
* linux-fork.c (delete_checkpoint_command)
(detach_checkpoint_command): Constify.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/linux-fork.c | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 74e805d..00de27b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2017-09-27 Tom Tromey <tom@tromey.com>
+ * linux-fork.c (delete_checkpoint_command)
+ (detach_checkpoint_command): Constify.
+
+2017-09-27 Tom Tromey <tom@tromey.com>
+
* cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
2017-09-27 Tom Tromey <tom@tromey.com>
diff --git a/gdb/linux-fork.c b/gdb/linux-fork.c
index 6b9c6a8..554cfae 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;