This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Constify two functions in valprint.c
- From: Tom Tromey <tromey at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 27 Sep 2017 14:53:47 -0000
- Subject: [binutils-gdb] Constify two functions in valprint.c
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b0a8e6c4431a2e762dac88f3d73efca4bc47c90a
commit b0a8e6c4431a2e762dac88f3d73efca4bc47c90a
Author: Tom Tromey <tom@tromey.com>
Date: Sat Sep 9 20:58:42 2017 -0600
Constify two functions in valprint.c
gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>
* valprint.c (set_radix, show_radix): Constify.
Diff:
---
gdb/ChangeLog | 4 ++++
gdb/valprint.c | 8 ++------
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6f07d5e..fa84567 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
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.
2017-09-27 Tom Tromey <tom@tromey.com>
diff --git a/gdb/valprint.c b/gdb/valprint.c
index d3094ca..ead4131 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -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)
{