This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA 41/67] Constify some commands in remote-fileio.c
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tom at tromey dot com>
- Date: Wed, 20 Sep 2017 23:09:57 -0600
- Subject: [RFA 41/67] Constify some commands in remote-fileio.c
- Authentication-results: sourceware.org; auth=none
- References: <20170921051023.19023-1-tom@tromey.com>
ChangeLog
2017-09-20 Tom Tromey <tom@tromey.com>
* remote-fileio.c (set_system_call_allowed)
(show_system_call_allowed): Constify.
---
gdb/ChangeLog | 5 +++++
gdb/remote-fileio.c | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/gdb/remote-fileio.c b/gdb/remote-fileio.c
index 252b423..c305171 100644
--- a/gdb/remote-fileio.c
+++ b/gdb/remote-fileio.c
@@ -1272,7 +1272,7 @@ remote_fileio_to_host_stat (struct fio_stat *fst, struct stat *st)
static void
-set_system_call_allowed (char *args, int from_tty)
+set_system_call_allowed (const char *args, int from_tty)
{
if (args)
{
@@ -1289,7 +1289,7 @@ set_system_call_allowed (char *args, int from_tty)
}
static void
-show_system_call_allowed (char *args, int from_tty)
+show_system_call_allowed (const char *args, int from_tty)
{
if (args)
error (_("Garbage after \"show remote "
--
2.9.4