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.
This commit is contained in:
Tom Tromey 2014-07-21 17:06:20 -06:00
parent 414842dc7a
commit d3d3328bca
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2014-07-24 Tom Tromey <tromey@redhat.com>
* stack.c (up_silently_base, down_silently_base): Make argument
const.
2014-07-24 Tom Tromey <tromey@redhat.com>
* solib.c (solib_add): Make "pattern" const.

View File

@ -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;