Constify some commands in remote-fileio.c
authorTom Tromey <tom@tromey.com>
Wed, 13 Sep 2017 00:38:19 +0000 (18:38 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 27 Sep 2017 14:44:48 +0000 (08:44 -0600)
gdb/ChangeLog
2017-09-27  Tom Tromey  <tom@tromey.com>

* remote-fileio.c (set_system_call_allowed)
(show_system_call_allowed): Constify.

gdb/ChangeLog
gdb/remote-fileio.c

index 28ca1468cdc7f8024c21e851a353f148a862424d..8ec4a7a79e7c33065a6caf957c68e603f30e9a68 100644 (file)
@@ -1,3 +1,8 @@
+2017-09-27  Tom Tromey  <tom@tromey.com>
+
+       * remote-fileio.c (set_system_call_allowed)
+       (show_system_call_allowed): Constify.
+
 2017-09-27  Tom Tromey  <tom@tromey.com>
 
        * tracepoint.c (delete_trace_variable_command)
index 252b423bfabc43a46c375b582037bea4132b2683..c305171f6496605ead12f3b655c15a7410885cfa 100644 (file)
@@ -1272,7 +1272,7 @@ remote_fileio_to_host_stat (struct fio_stat *fst, struct stat *st)
 \f
 
 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 "