Constify two functions in valprint.c
authorTom Tromey <tom@tromey.com>
Sun, 10 Sep 2017 02:58:42 +0000 (20:58 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 27 Sep 2017 14:44:17 +0000 (08:44 -0600)
gdb/ChangeLog
2017-09-27  Tom Tromey  <tom@tromey.com>

* valprint.c (set_radix, show_radix): Constify.

gdb/ChangeLog
gdb/valprint.c

index 6f07d5e8ee07570d7d27343f4700a022f5352752..fa84567586698af1529662c585b9ec57470a479a 100644 (file)
@@ -1,3 +1,7 @@
+2017-09-27  Tom Tromey  <tom@tromey.com>
+
+       * valprint.c (set_radix, show_radix): Constify.
+
 2017-09-27  Tom Tromey  <tom@tromey.com>
 
        * dtrace-probe.c (info_probes_dtrace_command): Constify.
index d3094ca6f18353a42a5482b8ea4550c9ed2c4970..ead4131967445a1c817e0139c828268171e0de60 100644 (file)
@@ -88,10 +88,6 @@ static void show_print (char *, int);
 
 static void set_print (char *, int);
 
-static void set_radix (char *, int);
-
-static void show_radix (char *, int);
-
 static void set_input_radix (char *, int, struct cmd_list_element *);
 
 static void set_input_radix_1 (int, unsigned);
@@ -3093,7 +3089,7 @@ set_output_radix_1 (int from_tty, unsigned radix)
    the 'set input-radix' command.  */
 
 static void
-set_radix (char *arg, int from_tty)
+set_radix (const char *arg, int from_tty)
 {
   unsigned radix;
 
@@ -3111,7 +3107,7 @@ set_radix (char *arg, int from_tty)
 /* Show both the input and output radices.  */
 
 static void
-show_radix (char *arg, int from_tty)
+show_radix (const char *arg, int from_tty)
 {
   if (from_tty)
     {