This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 08/13] constify stack.c
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tromey at redhat dot com>
- Date: Tue, 22 Jul 2014 12:55:14 -0600
- Subject: [PATCH 08/13] constify stack.c
- Authentication-results: sourceware.org; auth=none
- References: <1406055319-26380-1-git-send-email-tromey at redhat dot com>
This constifies a couple of functions in stack.c.
2014-07-22 Tom Tromey <tromey@redhat.com>
* stack.c (up_silently_base, down_silently_base): Make argument
const.
---
gdb/ChangeLog | 5 +++++
gdb/stack.c | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/gdb/stack.c b/gdb/stack.c
index 0d6d8e7..6fb4e7b 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -2304,7 +2304,7 @@ current_frame_command (char *level_exp, int from_tty)
previously selected frame, and print it briefly. */
static void
-up_silently_base (char *count_exp)
+up_silently_base (const char *count_exp)
{
struct frame_info *frame;
int count = 1;
@@ -2335,7 +2335,7 @@ up_command (char *count_exp, int from_tty)
selected frame, and print it briefly. */
static void
-down_silently_base (char *count_exp)
+down_silently_base (const char *count_exp)
{
struct frame_info *frame;
int count = -1;
--
1.9.3