constify stack.c
authorTom Tromey <tromey@redhat.com>
Mon, 21 Jul 2014 23:06:20 +0000 (17:06 -0600)
committerTom Tromey <tromey@redhat.com>
Thu, 24 Jul 2014 17:30:03 +0000 (11:30 -0600)
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.

gdb/ChangeLog
gdb/stack.c

index 608bfb88424599e2f7ae9cf4fa41b1f1c033d7d5..3cd0df695eabfe25ff6167349c598842029b39ea 100644 (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.
index 4db5df55259341bb3a1b19b2f350c1e546635378..3ca4db03ad2a8a92864240bc42b08329a1f92790 100644 (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;
This page took 0.031105 seconds and 4 git commands to generate.