aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2014-07-21 17:06:20 -0600
committerTom Tromey <tromey@redhat.com>2014-07-24 11:30:03 -0600
commitd3d3328bca04f0a5d0c9216c53f737d94f5f947b (patch)
treefe2f0c963e1ae7b50820c43553f06d63c921d07f /gdb/stack.c
parent414842dc7ae1d398fca1bda9a20a89d51b7c2f09 (diff)
downloadgdb-d3d3328bca04f0a5d0c9216c53f737d94f5f947b.zip
gdb-d3d3328bca04f0a5d0c9216c53f737d94f5f947b.tar.gz
gdb-d3d3328bca04f0a5d0c9216c53f737d94f5f947b.tar.bz2
constify stack.c
This constifies a couple of functions in stack.c. 2014-07-24 Tom Tromey <tromey@redhat.com> * stack.c (up_silently_base, down_silently_base): Make argument const.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index 4db5df5..3ca4db0 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -2306,7 +2306,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;
@@ -2337,7 +2337,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;