From: Tom Tromey Date: Sun, 10 Sep 2017 03:00:26 +0000 (-0600) Subject: Constify two functions in linux-fork.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5b64bf744c04f550a9d15b49a8cb0245904afb13;p=binutils-gdb.git Constify two functions in linux-fork.c gdb/ChangeLog 2017-09-27 Tom Tromey * linux-fork.c (delete_checkpoint_command) (detach_checkpoint_command): Constify. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 74e805db123..00de27b2669 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 6b9c6a87601..554cfae7720 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;