This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Constify some commands in remote-fileio.c


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=442019e118afb6bdbae490c0b072e8f024f2d9a2

commit 442019e118afb6bdbae490c0b072e8f024f2d9a2
Author: Tom Tromey <tom@tromey.com>
Date:   Tue Sep 12 18:38:19 2017 -0600

    Constify some commands in remote-fileio.c
    
    gdb/ChangeLog
    2017-09-27  Tom Tromey  <tom@tromey.com>
    
    	* remote-fileio.c (set_system_call_allowed)
    	(show_system_call_allowed): Constify.

Diff:
---
 gdb/ChangeLog       | 5 +++++
 gdb/remote-fileio.c | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 28ca146..8ec4a7a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
 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)
 	(tfind_end_command, tfind_start_command, tfind_pc_command)
 	(tfind_tracepoint_command, tfind_line_command)
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 "


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]