From d3d3328bca04f0a5d0c9216c53f737d94f5f947b Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 21 Jul 2014 17:06:20 -0600 Subject: [PATCH] constify stack.c This constifies a couple of functions in stack.c. 2014-07-24 Tom Tromey * 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/ChangeLog b/gdb/ChangeLog index 608bfb88424..3cd0df695ea 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-07-24 Tom Tromey + + * stack.c (up_silently_base, down_silently_base): Make argument + const. + 2014-07-24 Tom Tromey * solib.c (solib_add): Make "pattern" const. diff --git a/gdb/stack.c b/gdb/stack.c index 4db5df55259..3ca4db03ad2 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; -- 2.30.2