From 5b64bf744c04f550a9d15b49a8cb0245904afb13 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 9 Sep 2017 21:00:26 -0600 Subject: [PATCH] Constify two functions in linux-fork.c gdb/ChangeLog 2017-09-27 Tom Tromey * 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/ChangeLog b/gdb/ChangeLog index 74e805db12..00de27b266 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2017-09-27 Tom Tromey + + * linux-fork.c (delete_checkpoint_command) + (detach_checkpoint_command): Constify. + 2017-09-27 Tom Tromey * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify. diff --git a/gdb/linux-fork.c b/gdb/linux-fork.c index 6b9c6a8760..554cfae772 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.34.1